nanogui: Cyrillic font buit-in
Subject:
Re: [nanogui] Cyrillic font buit-in
From:
"Greg Haerr" ####@####.####
Date:
9 May 2008 18:39:12 -0000
Message-Id: <0b6801c8b203$f27c0840$0300a8c0@RDP>
: I have read devfont.c source and I have seen PMWFONTPROCS struct have
: "encoding" member: if I set it to MWTF_UTF8 in GdCreateFont function
: when the built-in font is loaded, can be the right way?
The encoding member in the built-in MWFONTPROCS struct
must be something that lets nano-X know that the font is
larger than 256 characters. I usually use MWTF_UC16 in
the struct, and then specify the text encoding passed to GrText
as whatever your application is using. Nano-X will convert
between the formats. The UC16 allows 16-bit access to
the font glyphs.
I don't understand your statement about GdCreateFont.
Regards,
Greg