Lines Matching refs:deviceContext
101 static void dcfontname_to_skstring(HDC deviceContext, const LOGFONT& lf, SkString* familyName) { in dcfontname_to_skstring() argument
103 if (0 == (fontNameLen = GetTextFace(deviceContext, 0, nullptr))) { in dcfontname_to_skstring()
105 if (0 == (fontNameLen = GetTextFace(deviceContext, 0, nullptr))) { in dcfontname_to_skstring()
111 if (0 == GetTextFace(deviceContext, fontNameLen, fontName.get())) { in dcfontname_to_skstring()
113 if (0 == GetTextFace(deviceContext, fontNameLen, fontName.get())) { in dcfontname_to_skstring()
218 HDC deviceContext = ::CreateCompatibleDC(nullptr); in LogFontTypeface() local
219 HFONT savefont = (HFONT)SelectObject(deviceContext, font); in LogFontTypeface()
222 if (0 == GetTextMetrics(deviceContext, &textMetric)) { in LogFontTypeface()
224 if (0 == GetTextMetrics(deviceContext, &textMetric)) { in LogFontTypeface()
228 if (deviceContext) { in LogFontTypeface()
229 ::SelectObject(deviceContext, savefont); in LogFontTypeface()
230 ::DeleteDC(deviceContext); in LogFontTypeface()
1694 HDC deviceContext = ::CreateCompatibleDC(nullptr); in onGetFamilyName() local
1695 HFONT savefont = (HFONT)SelectObject(deviceContext, font); in onGetFamilyName()
1697 dcfontname_to_skstring(deviceContext, fLogFont, familyName); in onGetFamilyName()
1699 if (deviceContext) { in onGetFamilyName()
1700 ::SelectObject(deviceContext, savefont); in onGetFamilyName()
1701 ::DeleteDC(deviceContext); in onGetFamilyName()