Lines Matching refs:deviceContext
104 static void dcfontname_to_skstring(HDC deviceContext, const LOGFONT& lf, SkString* familyName) { in dcfontname_to_skstring() argument
106 if (0 == (fontNameLen = GetTextFace(deviceContext, 0, nullptr))) { in dcfontname_to_skstring()
108 if (0 == (fontNameLen = GetTextFace(deviceContext, 0, nullptr))) { in dcfontname_to_skstring()
114 if (0 == GetTextFace(deviceContext, fontNameLen, fontName.get())) { in dcfontname_to_skstring()
116 if (0 == GetTextFace(deviceContext, fontNameLen, fontName.get())) { in dcfontname_to_skstring()
220 HDC deviceContext = ::CreateCompatibleDC(nullptr); in LogFontTypeface() local
221 HFONT savefont = (HFONT)SelectObject(deviceContext, font); in LogFontTypeface()
224 if (0 == GetTextMetrics(deviceContext, &textMetric)) { in LogFontTypeface()
226 if (0 == GetTextMetrics(deviceContext, &textMetric)) { in LogFontTypeface()
230 if (deviceContext) { in LogFontTypeface()
231 ::SelectObject(deviceContext, savefont); in LogFontTypeface()
232 ::DeleteDC(deviceContext); in LogFontTypeface()
1614 HDC deviceContext = ::CreateCompatibleDC(nullptr); in onGetFamilyName() local
1615 HFONT savefont = (HFONT)SelectObject(deviceContext, font); in onGetFamilyName()
1617 dcfontname_to_skstring(deviceContext, fLogFont, familyName); in onGetFamilyName()
1619 if (deviceContext) { in onGetFamilyName()
1620 ::SelectObject(deviceContext, savefont); in onGetFamilyName()
1621 ::DeleteDC(deviceContext); in onGetFamilyName()