Hi,
I've successfully been using Cocotron for my app on Windows XP and Windows 7 (32 and 64 bit) for the past year or so. However, when testing the exact same app on Windows 8 RTM build (64-bit), I'm finding that it crashes on startup.
I tracked the crash down to the GDI font enumeration code in Onyx2D (O2Font_gdi.m). The font enumeration is done in _buildNativePSmapping using EnumFontFamiliesW (to get the list of font families via EnumFamiliesCallBack) and then a loop of EnumFontFamiliesExW calls with each family (which causes EnumFontFromFamilyCallBack to be called).
For some reason, I'm seeing a font with a bad family name in EnumFamiliesCallBack (which causes the crash). I'm able to get around this crash by limiting the font types it processes to only RASTER_FONTTYPE and TRUETYPE_FONTTYPE (i.e. skipping vector font types). However, I'm now getting another crash on the very first EnumFontFamiliesExW call made in the loop.
I see that the callback (EnumFontFromFamilyCallBack) is happening after the call to EnumFontFamiliesExW. However, once the callback returns, there's a crash in the GDI library somewhere (can't see the top three layers of the stack).
Has anyone else encountered this problem on Windows 8? Any ideas/help would be appreciated.