My problem is that I need to use cyrillic built-in font with a microwindows application that use the win32 API. After I have converted the font from .ttf to .c (otf2bdf, convbdf) I have a very long array with a lot of symbols (2^16?). So, when I start my applications, I'm not read the right symbols (my application read a UTF-8 coded file and show them in a text field).
Why? How can I do for get the right symbols?
I'm not understand where is the mistake, the ttf font work well.

I thought to resolve the problem (dirty way, I know :/ ) by forcing UTF-8 encoding in GdCreateFont function but this solution doesn't work.

Thank you.
Regards,

Cristian


Greg Haerr ha scritto:
: 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



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to