Page 1 of 1
Windows character-set
Posted: Tue Jul 18, 2006 11:59 am
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.
Re:Windows character-set
Posted: Tue Jul 18, 2006 12:39 pm
by bluecode
In graphic mode you draw a font pixel by pixel yourself. Some libraries, e.g. freetype might help you with this.
Re:Windows character-set
Posted: Tue Jul 18, 2006 1:38 pm
by Peter
Thanks for your reply. I thought DOS also supported character-sets?
Re:Windows character-set
Posted: Tue Jul 18, 2006 2:25 pm
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
Re:Windows character-set
Posted: Tue Jul 18, 2006 11:57 pm
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.
Re:Windows character-set
Posted: Wed Jul 19, 2006 12:53 am
by Peter
Ok, I understand. Thanks...