Please post to the list so others can learn and comment. : I converted all utf8 text strings into koi8-r. How to display them now : properly ? AFAIU I need to load some external font with koi8-r support : with GdCreateFont and set it somehow as default application font.
Microwindows doesn't support koi8-r, you'll have to add an encoder/decoder in engine/devfont.c::GdConvertEncoding (I think), along with a new MWTF_KOI8R flag, and then pass this to the MwExTextOut mod described below. : : But when I tried to load koi8-r .pcf font taken from X11 distribution, : my app segfaulted. Then I took pcf loader (font_pcf.c), PCF spec from : fontforge documentation and found out that pcf loader from : microwindows is totally broken. It won't read most of .pcf fonts from : X11 distribution. it doesn't follow the spec in most cases where byte : order is used. That's bad news. Certainly the original PCF loader did comply, but was buggy in other areas. I've accepted other contributions without going over them in detail, and now you're saying it doesn't work at all... :( I assume you're running the latest CVS version, right? Please send the .pcf and .bdf file (if possible) for the font you're finding crashes nano-X. : : Let's assume that I have only koi8-r strings. How to display them now : properly in all controls (listboxes, static text etc.) ? :) My previous email described how to change the default system encoding: This sounds like a modification we need to make. Most, but not all, controls, end up calling an internal MwExtTextOut function (very similar to the ExtTextOut win32 call) that takes an encoding as the last parameter. This will likely need to be modifed to use a "global locale" setting, rather than what's currently passed. See the implementation in src/mwin for details. The default system font would likely have to be changed in the init code where the fonts are initially loaded (somewhere in mwin/winuser.c or winfont.c I think) : : Thanks. : : -- : Regards, Krasu. : : --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]