• Home
  • Raw
  • Download

Lines Matching refs:hdc

154 static unsigned calculateGlyphCount(HDC hdc, const LOGFONT& lf) {  in calculateGlyphCount()  argument
156 if (0 == GetTextMetrics(hdc, &textMetric)) { in calculateGlyphCount()
159 GetTextMetrics(hdc, &textMetric); in calculateGlyphCount()
168 if (GDI_ERROR != GetFontData(hdc, SkOTTableMaximumProfile::TAG, 4, &glyphs, sizeof(glyphs))) { in calculateGlyphCount()
179 if (GetGlyphOutlineW(hdc, mid, GGO_METRICS | GGO_GLYPH_INDEX, &gm, 0, in calculateGlyphCount()
190 static unsigned calculateUPEM(HDC hdc, const LOGFONT& lf) { in calculateUPEM() argument
192 if (0 == GetTextMetrics(hdc, &textMetric)) { in calculateUPEM()
195 GetTextMetrics(hdc, &textMetric); in calculateUPEM()
203 unsigned int otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in calculateUPEM()
206 otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in calculateUPEM()
242 SkAutoHDC hdc(fLogFont); in LogFontTypeface() local
244 if (0 == GetTextMetrics(hdc, &textMetric)) { in LogFontTypeface()
246 if (0 == GetTextMetrics(hdc, &textMetric)) { in LogFontTypeface()
1607 SkAutoHDC hdc(fLogFont); in onGetFamilyName() local
1608 dcfontname_to_skstring(hdc, fLogFont, familyName); in onGetFamilyName()
1621 SkAutoHDC hdc(fLogFont); in getGlyphToUnicodeMap() local
1622 unsigned int glyphCount = calculateGlyphCount(hdc, fLogFont); in getGlyphToUnicodeMap()
1623 populate_glyph_to_unicode(hdc, glyphCount, dstArray); in getGlyphToUnicodeMap()
1633 SkAutoHDC hdc(lf); in onGetAdvancedMetrics() local
1642 unsigned int otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in onGetAdvancedMetrics()
1645 otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in onGetAdvancedMetrics()
1647 if (!otmRet || !GetTextFace(hdc, LF_FACESIZE, lf.lfFaceName)) { in onGetAdvancedMetrics()
1652 SelectObject(hdc, designFont.get()); in onGetAdvancedMetrics()
1653 if (!GetOutlineTextMetrics(hdc, sizeof(otm), &otm)) { in onGetAdvancedMetrics()
1656 glyphCount = calculateGlyphCount(hdc, fLogFont); in onGetAdvancedMetrics()
1713 if (GetCharABCWidths(hdc, stem_chars[i], stem_chars[i], &abcWidths)) { in onGetAdvancedMetrics()
1828 SkAutoHDC hdc(lf); in onOpenStream() local
1833 DWORD bufferSize = GetFontData(hdc, tables[i], 0, nullptr, 0); in onOpenStream()
1836 bufferSize = GetFontData(hdc, tables[i], 0, nullptr, 0); in onOpenStream()
1840 if (GetFontData(hdc, tables[i], 0, (void*)stream->getMemoryBase(), bufferSize)) { in onOpenStream()
1854 static void bmpCharsToGlyphs(HDC hdc, const WCHAR* bmpChars, int count, uint16_t* glyphs, in bmpCharsToGlyphs() argument
1872 DWORD result = GetGlyphIndicesW(hdc, bmpChars, count, glyphs, GGI_MARK_NONEXISTING_GLYPHS); in bmpCharsToGlyphs()
1895 static uint16_t nonBmpCharToGlyph(HDC hdc, SCRIPT_CACHE* scriptCache, const WCHAR utf16[2]) { in nonBmpCharToGlyph() argument
1936 HRZM(ScriptShape(hdc, scriptCache, utf16, numWCHAR, maxGlyphs, &script, in nonBmpCharToGlyph()
1948 SkAutoHDC hdc(fLogFont); in onCharsToGlyphs() local
1951 if (0 == GetTextMetrics(hdc, &tm)) { in onCharsToGlyphs()
1953 if (0 == GetTextMetrics(hdc, &tm)) { in onCharsToGlyphs()
1973 bmpCharsToGlyphs(hdc, scratch, runLength, &glyphs[glyphIndex], Ox1FHack); in onCharsToGlyphs()
1980 glyphs[glyphIndex] = nonBmpCharToGlyph(hdc, &sc, scratch); in onCharsToGlyphs()
1991 SkAutoHDC hdc(fLogFont); in onCountGlyphs() local
1992 return calculateGlyphCount(hdc, fLogFont); in onCountGlyphs()
1998 SkAutoHDC hdc(fLogFont); in onGetUPEM() local
1999 return calculateUPEM(hdc, fLogFont); in onGetUPEM()
2040 SkAutoHDC hdc(lf); in onGetTableData() local
2046 DWORD bufferSize = GetFontData(hdc, tag, (DWORD) offset, data, (DWORD) length); in onGetTableData()
2049 bufferSize = GetFontData(hdc, tag, (DWORD) offset, data, (DWORD) length); in onGetTableData()
2056 SkAutoHDC hdc(lf); in onCopyTableData() local
2059 DWORD size = GetFontData(hdc, tag, 0, nullptr, 0); in onCopyTableData()
2062 size = GetFontData(hdc, tag, 0, nullptr, 0); in onCopyTableData()
2068 if (GetFontData(hdc, tag, 0, data->writable_data(), size) == GDI_ERROR) { in onCopyTableData()
2187 HDC hdc = ::CreateCompatibleDC(nullptr); in SkFontStyleSetGDI() local
2188 ::EnumFontFamiliesEx(hdc, &lf, enum_family_proc, (LPARAM)&fArray, 0); in SkFontStyleSetGDI()
2189 ::DeleteDC(hdc); in SkFontStyleSetGDI()
2232 HDC hdc = ::CreateCompatibleDC(nullptr); in SkFontMgrGDI() local
2233 ::EnumFontFamiliesEx(hdc, &lf, enum_family_proc, (LPARAM)&fLogFontArray, 0); in SkFontMgrGDI()
2234 ::DeleteDC(hdc); in SkFontMgrGDI()