• Home
  • Raw
  • Download

Lines Matching refs:ctFont

394         SkUniqueCFRef<CTFontRef> ctFont(  in smooth_behavior()  local
396 SkASSERT(ctFont); in smooth_behavior()
410 CTFontDrawGlyphs(ctFont.get(), &spiderGlyph, &point, 1, noSmoothContext.get()); in smooth_behavior()
411 CTFontDrawGlyphs(ctFont.get(), &spiderGlyph, &point, 1, smoothContext.get()); in smooth_behavior()
794 SkUniqueCFRef<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(desc, 0, nullptr)); in create_from_desc() local
795 if (!ctFont) { in create_from_desc()
799 return create_from_CTFontRef(std::move(ctFont), nullptr, nullptr); in create_from_desc()
863 SkUniqueCFRef<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(desc, 0, nullptr)); in create_from_desc_and_style() local
864 if (!ctFont) { in create_from_desc_and_style()
868 const CTFontSymbolicTraits traits = CTFontGetSymbolicTraits(ctFont.get()); in create_from_desc_and_style()
878 …SkUniqueCFRef<CTFontRef> ctNewFont(CTFontCreateCopyWithSymbolicTraits(ctFont.get(), 0, … in create_from_desc_and_style()
880 ctFont = std::move(ctNewFont); in create_from_desc_and_style()
884 return create_from_CTFontRef(std::move(ctFont), nullptr, nullptr); in create_from_desc_and_style()
1024 CTFontRef ctFont = (CTFontRef)this->getTypeface()->internal_private_getCTFontRef(); in SkScalerContext_Mac() local
1025 CFIndex numGlyphs = CTFontGetGlyphCount(ctFont); in SkScalerContext_Mac()
1047 fCTFont = ctfont_create_exact_copy(ctFont, textSize, nullptr); in SkScalerContext_Mac()
1605 static void populate_glyph_to_unicode_slow(CTFontRef ctFont, CFIndex glyphCount, in populate_glyph_to_unicode_slow() argument
1611 if (CTFontGetGlyphsForCharacters(ctFont, &unichar, &glyph, 1)) { in populate_glyph_to_unicode_slow()
1626 CTFontRef ctFont, in get_plane_glyph_map() argument
1648 if (CTFontGetGlyphsForCharacters(ctFont, utf16, glyphs, count)) { in get_plane_glyph_map()
1662 static void populate_glyph_to_unicode(CTFontRef ctFont, CFIndex glyphCount, in populate_glyph_to_unicode() argument
1665 SkUniqueCFRef<CFCharacterSetRef> charSet(CTFontCopyCharacterSet(ctFont)); in populate_glyph_to_unicode()
1667 populate_glyph_to_unicode_slow(ctFont, glyphCount, glyphToUnicode); in populate_glyph_to_unicode()
1683 get_plane_glyph_map(bits, ctFont, glyphCount, glyphToUnicode, 0); in populate_glyph_to_unicode()
1705 get_plane_glyph_map(bits, ctFont, glyphCount, glyphToUnicode, planeIndex); in populate_glyph_to_unicode()
1722 SkUniqueCFRef<CTFontRef> ctFont = in getGlyphToUnicodeMap() local
1724 CFIndex glyphCount = CTFontGetGlyphCount(ctFont.get()); in getGlyphToUnicodeMap()
1725 populate_glyph_to_unicode(ctFont.get(), glyphCount, dstArray); in getGlyphToUnicodeMap()
1730 SkUniqueCFRef<CTFontRef> ctFont = in onGetAdvancedMetrics() local
1736 SkUniqueCFRef<CFStringRef> fontName(CTFontCopyPostScriptName(ctFont.get())); in onGetAdvancedMetrics()
1747 SkUniqueCFRef<CGFontRef> cgFont(CTFontCopyGraphicsFont(ctFont.get(), nullptr)); in onGetAdvancedMetrics()
1772 CTFontSymbolicTraits symbolicTraits = CTFontGetSymbolicTraits(ctFont.get()); in onGetAdvancedMetrics()
1785 info->fItalicAngle = (int16_t) CTFontGetSlantAngle(ctFont.get()); in onGetAdvancedMetrics()
1786 info->fAscent = (int16_t) CTFontGetAscent(ctFont.get()); in onGetAdvancedMetrics()
1787 info->fDescent = (int16_t) CTFontGetDescent(ctFont.get()); in onGetAdvancedMetrics()
1788 info->fCapHeight = (int16_t) CTFontGetCapHeight(ctFont.get()); in onGetAdvancedMetrics()
1789 CGRect bbox = CTFontGetBoundingBox(ctFont.get()); in onGetAdvancedMetrics()
1807 if (CTFontGetGlyphsForCharacters(ctFont.get(), stem_chars, glyphs, count)) { in onGetAdvancedMetrics()
1808 CTFontGetBoundingRectsForGlyphs(ctFont.get(), kCTFontOrientationHorizontal, in onGetAdvancedMetrics()
1823 static SK_SFNT_ULONG get_font_type_tag(CTFontRef ctFont) { in get_font_type_tag() argument
1825 static_cast<CFNumberRef>(CTFontCopyAttribute(ctFont, kCTFontFormatAttribute))); in get_font_type_tag()
2004 static bool get_variations(CTFontRef ctFont, CFIndex* cgAxisCount, in get_variations() argument
2011 SkUniqueCFRef<CGFontRef> cgFont(CTFontCopyGraphicsFont(ctFont, nullptr)); in get_variations()
2249 static SkUniqueCFRef<CFDataRef> copy_table_from_font(CTFontRef ctFont, SkFontTableTag tag) { in copy_table_from_font() argument
2250 SkUniqueCFRef<CFDataRef> data(CTFontCopyTable(ctFont, (CTFontTableTag) tag, in copy_table_from_font()
2253 SkUniqueCFRef<CGFontRef> cgFont(CTFontCopyGraphicsFont(ctFont, nullptr)); in copy_table_from_font()