Windows 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
Peter

Windows character-set

Post by Peter »

Hello,

I'm back again, hopefully this time i'll stay tuned on OS-dev for a longer time.
Windows supports a variety of character-sets, I was wondering how that is possible... is it possible in my OS to get chinese-letters from the video-card? And how can I use that in my OS?

I was just wondering how this is done, i'm not going to use it... or even try to use it because i'm a newbie.

Peter.
bluecode

Re:Windows character-set

Post by bluecode »

In graphic mode you draw a font pixel by pixel yourself. Some libraries, e.g. freetype might help you with this.
Peter

Re:Windows character-set

Post by Peter »

Thanks for your reply. I thought DOS also supported character-sets?
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Windows character-set

Post by Candy »

Peter wrote: Thanks for your reply. I thought DOS also supported character-sets?
By redefining the characters in the VGA card, as discussed in this very recent thread:

http://www.mega-tokyo.com/forum/index.p ... eadid=9803
Cody

Re:Windows character-set

Post by Cody »

Peter wrote: Thanks for your reply. I thought DOS also supported character-sets?
for the case in windows, they can handle different character set if the encoding is in UNICODE and the proper font lib is installed too. For character sets other than UNICODE, you have to tell it what the default charset is so it will map automatically translate that for you.

For example, a simplified chinese character set based os can switch to tranditional chinese character set based os but most of the characters you see will be meaningless.
Peter

Re:Windows character-set

Post by Peter »

Ok, I understand. Thanks...
Post Reply