virtual HRESULT STDMETHODCALLTYPE ConvertFontToLOGFONT( IDWriteFont *font, LOGFONTW *logFont, WINBOOL *isSystemFont) { return orig_this->ConvertFontToLOGFONT(font, logFont, isSystemFont); }
bool gfxDWriteFontEntry::InitLogFont(IDWriteFont *aFont, LOGFONTW *aLogFont) { HRESULT hr; BOOL isInSystemCollection; IDWriteGdiInterop *gdi = gfxDWriteFontList::PlatformFontList()->GetGDIInterop(); hr = gdi->ConvertFontToLOGFONT(aFont, aLogFont, &isInSystemCollection); return (FAILED(hr) ? false : true); }