Hi,

In order to enable glyph fallback under Windows platform, a  class
WinGlyphFallbackSubstitution inherited ImplGlyphFallbackFontSubstitution is
created as the class FcGlyphFallbackSubstitution under Linux system. To
implement the class WinGlyphFallbackSubstitution, It's necessary to know if
a character is contained in a given font. So a ImplWinFontData object is
generated as below code snippet when traversing every font face utilizing
Windows API EnumFontFamilyExW.

*ImplWinFontData* pData = ImplLogMetricToDevFontDataW( pLogFont,
&(pMetric->ntmTm), nFontType)
pData->UpdateFromHDC(mhDC);*

Unfortunately, *pData->HasChar(c)* always returns false even
*pData*contains the character
*c*. I don't know what's the problem. In addition, any idea to enable glyph
fallback under windows platform would be also highly appreciated just as
done under Linux system leveraging fontconfig lib.

Thanks in advance.

Best regards,
Yanmin Jia

Reply via email to