Redefining character set

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
osdever
Member
Member
Posts: 492
Joined: Fri Apr 03, 2015 9:41 am
Contact:

Redefining character set

Post by osdever »

I've seen that some programs are redefining the character set to display GUI widgets, icons, etc. How do they doing it? Can i do it on my OS? And also, can i change the code page to CP866?
Developing U365.
Source:
only testing: http://gitlab.com/bps-projs/U365/tree/testing

OSDev newbies can copy any code from my repositories, just leave a notice that this code was written by U365 development team, not by you.
mallard
Member
Member
Posts: 280
Joined: Tue May 13, 2014 3:02 am
Location: Private, UK

Re: Redefining character set

Post by mallard »

You simply modify or replace the font data in the VGA memory. This wiki article describes the format of the font and how to read it. It shouldn't take too much figuring out in order to write to it instead...
Image
Post Reply