Font name translation may fail at startup
Submitted by Jerome Lambourg
Link to original bug (#651124)
Description
Created attachment 188638 patch on pango-1.28.3
With a japanese windows Vista or 7, gtk reports pango failures to load the system font.
This comes from the way the ASCII name of the font is retrieved in pango: get_family_nameW in pangowin32-fontmap.c loads the font in a device context that may not be initialized at the time the win32 theme is loaded. It thus fails returning the japanese characters instead of the expected international ASCII version.
Attached is a patch that corrects the issue by making sure that the device context is properly initialized when calls to get_family_nameW are performed.
Patch 188638, "patch on pango-1.28.3":
pango-jap.diff
Version: 1.28.x