• Home
  • Raw
  • Download

Lines Matching refs:ctFont

405         SkUniqueCFRef<CTFontRef> ctFont(  in smooth_behavior()  local
407 SkASSERT(ctFont); in smooth_behavior()
421 CTFontDrawGlyphs(ctFont.get(), &spiderGlyph, &point, 1, noSmoothContext.get()); in smooth_behavior()
422 CTFontDrawGlyphs(ctFont.get(), &spiderGlyph, &point, 1, smoothContext.get()); in smooth_behavior()
791 SkUniqueCFRef<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(desc, 0, nullptr)); in create_from_desc() local
792 if (!ctFont) { in create_from_desc()
796 return create_from_CTFontRef(std::move(ctFont), nullptr, false); in create_from_desc()
980 CTFontRef ctFont = (CTFontRef)this->getTypeface()->internal_private_getCTFontRef(); in SkScalerContext_Mac() local
981 CFIndex numGlyphs = CTFontGetGlyphCount(ctFont); in SkScalerContext_Mac()
1003 fCTFont = ctfont_create_exact_copy(ctFont, textSize, nullptr); in SkScalerContext_Mac()
1577 static void populate_glyph_to_unicode_slow(CTFontRef ctFont, CFIndex glyphCount, in populate_glyph_to_unicode_slow() argument
1583 if (CTFontGetGlyphsForCharacters(ctFont, &unichar, &glyph, 1)) { in populate_glyph_to_unicode_slow()
1598 static void populate_glyph_to_unicode(CTFontRef ctFont, CFIndex glyphCount, in populate_glyph_to_unicode() argument
1601 SkUniqueCFRef<CFCharacterSetRef> charSet(CTFontCopyCharacterSet(ctFont)); in populate_glyph_to_unicode()
1603 populate_glyph_to_unicode_slow(ctFont, glyphCount, glyphToUnicode); in populate_glyph_to_unicode()
1633 if (mask & (1 << j) && CTFontGetGlyphsForCharacters(ctFont, &unichar, &glyph, 1)) { in populate_glyph_to_unicode()
1654 SkUniqueCFRef<CTFontRef> ctFont = in getGlyphToUnicodeMap() local
1656 CFIndex glyphCount = CTFontGetGlyphCount(ctFont.get()); in getGlyphToUnicodeMap()
1657 populate_glyph_to_unicode(ctFont.get(), glyphCount, dstArray); in getGlyphToUnicodeMap()
1664 SkUniqueCFRef<CTFontRef> ctFont = in onGetAdvancedMetrics() local
1670 SkUniqueCFRef<CFStringRef> fontName(CTFontCopyPostScriptName(ctFont.get())); in onGetAdvancedMetrics()
1681 SkUniqueCFRef<CGFontRef> cgFont(CTFontCopyGraphicsFont(ctFont.get(), nullptr)); in onGetAdvancedMetrics()
1706 CTFontSymbolicTraits symbolicTraits = CTFontGetSymbolicTraits(ctFont.get()); in onGetAdvancedMetrics()
1719 info->fItalicAngle = (int16_t) CTFontGetSlantAngle(ctFont.get()); in onGetAdvancedMetrics()
1720 info->fAscent = (int16_t) CTFontGetAscent(ctFont.get()); in onGetAdvancedMetrics()
1721 info->fDescent = (int16_t) CTFontGetDescent(ctFont.get()); in onGetAdvancedMetrics()
1722 info->fCapHeight = (int16_t) CTFontGetCapHeight(ctFont.get()); in onGetAdvancedMetrics()
1723 CGRect bbox = CTFontGetBoundingBox(ctFont.get()); in onGetAdvancedMetrics()
1741 if (CTFontGetGlyphsForCharacters(ctFont.get(), stem_chars, glyphs, count)) { in onGetAdvancedMetrics()
1742 CTFontGetBoundingRectsForGlyphs(ctFont.get(), kCTFontOrientationHorizontal, in onGetAdvancedMetrics()
1757 static SK_SFNT_ULONG get_font_type_tag(CTFontRef ctFont) { in get_font_type_tag() argument
1759 static_cast<CFNumberRef>(CTFontCopyAttribute(ctFont, kCTFontFormatAttribute))); in get_font_type_tag()
1932 static bool get_variations(CTFontRef ctFont, CFIndex* cgAxisCount, in get_variations() argument
1939 SkUniqueCFRef<CGFontRef> cgFont(CTFontCopyGraphicsFont(ctFont, nullptr)); in get_variations()
2177 static SkUniqueCFRef<CFDataRef> copy_table_from_font(CTFontRef ctFont, SkFontTableTag tag) { in copy_table_from_font() argument
2178 SkUniqueCFRef<CFDataRef> data(CTFontCopyTable(ctFont, (CTFontTableTag) tag, in copy_table_from_font()
2181 SkUniqueCFRef<CGFontRef> cgFont(CTFontCopyGraphicsFont(ctFont, nullptr)); in copy_table_from_font()