• Zhiyi Zhang's avatar
    gdiplus: Search microsoft platform names first in load_ttf_name_id(). · 9786ee25
    Zhiyi Zhang authored
    Search names in fonts in the order of Microsoft, Mac and finally Unicode platform. This is also the
    order win32u uses to load font names.
    
    Fix Granado Espada Japan (1219160) launcher crashes at start in the Japanese locale. The game ships
    a font with a broken name record of Mac platform and encoding ID 0 (Roman) but the name string is in
    code page 10001 (Japanese). This broken name record is placed before the name records for the
    Microsoft platform so it gets selected first. Then the name string in the name record doesn't get
    converted correctly to Unicode because of the wrong code page. Thus the EnumFontFamiliesExW()
    in GdipPrivateAddMemoryFont() fails to find the font and causes game crash.
    9786ee25
Name
Last commit
Last update
..
Makefile.in Loading commit data...
brush.c Loading commit data...
customlinecap.c Loading commit data...
font.c Loading commit data...
graphics.c Loading commit data...
graphicspath.c Loading commit data...
image.c Loading commit data...
matrix.c Loading commit data...
metafile.c Loading commit data...
pathiterator.c Loading commit data...
pen.c Loading commit data...
region.c Loading commit data...
resource.rc Loading commit data...
stringformat.c Loading commit data...
wine_longname.sfd Loading commit data...
wine_longname.ttf Loading commit data...
wine_mac_win.ttf Loading commit data...
wine_mac_win.ttx Loading commit data...
wine_testfont0.sfd Loading commit data...
wine_testfont0.ttf Loading commit data...
wine_unicode_mac.ttf Loading commit data...
wine_unicode_mac.ttx Loading commit data...