GNOME Bugzilla – Bug 407315
Use wide character Win32 API in the pangowin32 code
Last modified: 2007-02-27 09:26:46 UTC
It would be a good idea to use the wide character API in the Win32 code in Pango. Cetainly in trunk (and possibly even in 1.14) we don't need to care for Win9x any longer, so no use to keep diddling with the system codepage font names. Unfortunately the LOGFONT struct (implicitly meaning the ANSI version, LOGFONTA) is used in some public Pango API, so we have to keep those entry points. We should however plan on eventually deprecating them and introduce corresponding new functions that use LOGFONTW instead. The old functions can be made into wrappers that convert the LOGFONTA back and forth to LOGFONTW and call the new LOGFONTW using ones. The private pangowin32 API also has some functions using LOGFONTA, but as this is private API, we by definition don't have to keep it stable.
Created attachment 82434 [details] [review] Suggested implementation Only slightly tested with gtk-demo so far.
Hmm, actually that patch wasn't tested at all, and doesn't work... (GI thought I tested it, but as the previously built pango DLLs were in the same folder as gtk-demo.exe, that overrode my PATH setting;) Will attach a new diff once I've found the problem.
Newer version of the patch in bug #110521.
Fixed now in trunk (i.e. 1.16 branch at this point).