• Home
  • Raw
  • Download

Lines Matching refs:hdc

153 static unsigned calculateGlyphCount(HDC hdc, const LOGFONT& lf) {  in calculateGlyphCount()  argument
155 if (0 == GetTextMetrics(hdc, &textMetric)) { in calculateGlyphCount()
158 GetTextMetrics(hdc, &textMetric); in calculateGlyphCount()
167 if (GDI_ERROR != GetFontData(hdc, SkOTTableMaximumProfile::TAG, 4, &glyphs, sizeof(glyphs))) { in calculateGlyphCount()
178 if (GetGlyphOutlineW(hdc, mid, GGO_METRICS | GGO_GLYPH_INDEX, &gm, 0, in calculateGlyphCount()
189 static unsigned calculateUPEM(HDC hdc, const LOGFONT& lf) { in calculateUPEM() argument
191 if (0 == GetTextMetrics(hdc, &textMetric)) { in calculateUPEM()
194 GetTextMetrics(hdc, &textMetric); in calculateUPEM()
202 unsigned int otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in calculateUPEM()
205 otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in calculateUPEM()
1637 HDC hdc = ::CreateCompatibleDC(nullptr); in getGlyphToUnicodeMap() local
1639 HFONT savefont = (HFONT)SelectObject(hdc, font); in getGlyphToUnicodeMap()
1642 SelectObject(hdc, designFont); in getGlyphToUnicodeMap()
1644 unsigned int glyphCount = calculateGlyphCount(hdc, fLogFont); in getGlyphToUnicodeMap()
1645 populate_glyph_to_unicode(hdc, glyphCount, dstArray); in getGlyphToUnicodeMap()
1647 SelectObject(hdc, savefont); in getGlyphToUnicodeMap()
1650 DeleteDC(hdc); in getGlyphToUnicodeMap()
1657 HDC hdc = CreateCompatibleDC(nullptr); in onGetAdvancedMetrics() local
1659 HFONT savefont = (HFONT)SelectObject(hdc, font); in onGetAdvancedMetrics()
1669 unsigned int otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in onGetAdvancedMetrics()
1672 otmRet = GetOutlineTextMetrics(hdc, sizeof(otm), &otm); in onGetAdvancedMetrics()
1674 if (!otmRet || !GetTextFace(hdc, LF_FACESIZE, lf.lfFaceName)) { in onGetAdvancedMetrics()
1679 SelectObject(hdc, designFont); in onGetAdvancedMetrics()
1680 if (!GetOutlineTextMetrics(hdc, sizeof(otm), &otm)) { in onGetAdvancedMetrics()
1683 glyphCount = calculateGlyphCount(hdc, fLogFont); in onGetAdvancedMetrics()
1742 if (GetCharABCWidths(hdc, stem_chars[i], stem_chars[i], &abcWidths)) { in onGetAdvancedMetrics()
1753 SelectObject(hdc, savefont); in onGetAdvancedMetrics()
1756 DeleteDC(hdc); in onGetAdvancedMetrics()
1865 HDC hdc = ::CreateCompatibleDC(nullptr); in onOpenStream() local
1867 HFONT savefont = (HFONT)SelectObject(hdc, font); in onOpenStream()
1872 DWORD bufferSize = GetFontData(hdc, tables[i], 0, nullptr, 0); in onOpenStream()
1875 bufferSize = GetFontData(hdc, tables[i], 0, nullptr, 0); in onOpenStream()
1879 if (GetFontData(hdc, tables[i], 0, (void*)stream->getMemoryBase(), bufferSize)) { in onOpenStream()
1888 SelectObject(hdc, savefont); in onOpenStream()
1890 DeleteDC(hdc); in onOpenStream()
1899 static void bmpCharsToGlyphs(HDC hdc, const WCHAR* bmpChars, int count, uint16_t* glyphs, in bmpCharsToGlyphs() argument
1902 DWORD result = GetGlyphIndicesW(hdc, bmpChars, count, glyphs, GGI_MARK_NONEXISTING_GLYPHS); in bmpCharsToGlyphs()
1925 static uint16_t nonBmpCharToGlyph(HDC hdc, SCRIPT_CACHE* scriptCache, const WCHAR utf16[2]) { in nonBmpCharToGlyph() argument
1946 HRZM(ScriptShape(hdc, scriptCache, utf16, numWCHAR, maxGlyphs, &si[0].a, in nonBmpCharToGlyph()
1978 SkAutoHDC hdc(fLogFont); in onCharsToGlyphs() local
1981 if (0 == GetTextMetrics(hdc, &tm)) { in onCharsToGlyphs()
1983 if (0 == GetTextMetrics(hdc, &tm)) { in onCharsToGlyphs()
2020 bmpCharsToGlyphs(hdc, scratch, runLength, &glyphs[glyphIndex], Ox1FHack); in onCharsToGlyphs()
2027 glyphs[glyphIndex] = nonBmpCharToGlyph(hdc, &sc, scratch); in onCharsToGlyphs()
2047 bmpCharsToGlyphs(hdc, currentUtf16, runLength, &glyphs[glyphIndex], Ox1FHack); in onCharsToGlyphs()
2054 glyphs[glyphIndex] = nonBmpCharToGlyph(hdc, &sc, currentUtf16); in onCharsToGlyphs()
2075 bmpCharsToGlyphs(hdc, scratch, runLength, &glyphs[glyphIndex], Ox1FHack); in onCharsToGlyphs()
2082 glyphs[glyphIndex] = nonBmpCharToGlyph(hdc, &sc, scratch); in onCharsToGlyphs()
2105 HDC hdc = ::CreateCompatibleDC(nullptr); in onCountGlyphs() local
2107 HFONT savefont = (HFONT)SelectObject(hdc, font); in onCountGlyphs()
2109 unsigned int glyphCount = calculateGlyphCount(hdc, fLogFont); in onCountGlyphs()
2111 SelectObject(hdc, savefont); in onCountGlyphs()
2113 DeleteDC(hdc); in onCountGlyphs()
2119 HDC hdc = ::CreateCompatibleDC(nullptr); in onGetUPEM() local
2121 HFONT savefont = (HFONT)SelectObject(hdc, font); in onGetUPEM()
2123 unsigned int upem = calculateUPEM(hdc, fLogFont); in onGetUPEM()
2125 SelectObject(hdc, savefont); in onGetUPEM()
2127 DeleteDC(hdc); in onGetUPEM()
2171 HDC hdc = ::CreateCompatibleDC(nullptr); in onGetTableData() local
2173 HFONT savefont = (HFONT)SelectObject(hdc, font); in onGetTableData()
2179 DWORD bufferSize = GetFontData(hdc, tag, (DWORD) offset, data, (DWORD) length); in onGetTableData()
2182 bufferSize = GetFontData(hdc, tag, (DWORD) offset, data, (DWORD) length); in onGetTableData()
2185 SelectObject(hdc, savefont); in onGetTableData()
2187 DeleteDC(hdc); in onGetTableData()
2293 HDC hdc = ::CreateCompatibleDC(nullptr); in SkFontStyleSetGDI() local
2294 ::EnumFontFamiliesEx(hdc, &lf, enum_family_proc, (LPARAM)&fArray, 0); in SkFontStyleSetGDI()
2295 ::DeleteDC(hdc); in SkFontStyleSetGDI()
2338 HDC hdc = ::CreateCompatibleDC(nullptr); in SkFontMgrGDI() local
2339 ::EnumFontFamiliesEx(hdc, &lf, enum_family_proc, (LPARAM)&fLogFontArray, 0); in SkFontMgrGDI()
2340 ::DeleteDC(hdc); in SkFontMgrGDI()