FontPlatformData FontCustomPlatformData::fontPlatformData(int size, bool bold, bool italic)
{
- return FontPlatformData(m_cgFont, FMGetFontFromATSFontRef(m_atsFont), size, bold, italic);
+ return FontPlatformData(m_cgFont, (ATSUFontID)m_atsFont, size, bold, italic);
}
FontCustomPlatformData* createFontCustomPlatformData(SharedBuffer* buffer)
}
CGFontRef cgFontRef = CGFontCreateWithPlatformFont(&fontRef);
+ if (!CGFontGetNumberOfGlyphs(cgFontRef)) {
+ CFRelease(cgFontRef);
+ cgFontRef = 0;
+ }
if (!cgFontRef) {
ATSFontDeactivate(containerRef, NULL, kATSOptionFlagsDefault);
return 0;