BUG=
Review URL: https://codereview.chromium.org/
22924004
git-svn-id: http://skia.googlecode.com/svn/trunk@10688
2bbb7eff-a529-9590-31e7-
b0007b416f81
}
}
-static void GetLogFontByID(SkFontID fontID, LOGFONT* lf) {
- LogFontTypeface* face = static_cast<LogFontTypeface*>(SkTypefaceCache::FindByID(fontID));
- if (face) {
- *lf = face->fLogFont;
- } else {
- sk_bzero(lf, sizeof(LOGFONT));
- }
-}
-
// Construct Glyph to Unicode table.
// Unicode code points that require conjugate pairs in utf16 are not
// supported.
*font = SkRefComPtr(static_cast<const DWriteFontTypeface*>(face)->fDWriteFont.get());
}
}
-static DWriteFontTypeface* GetDWriteFontByID(SkFontID fontID) {
- return static_cast<DWriteFontTypeface*>(SkTypefaceCache::FindByID(fontID));
-}
SkScalerContext_DW::SkScalerContext_DW(DWriteFontTypeface* typeface,
const SkDescriptor* desc)