Lines Matching refs:ctFont
547 AutoCFRelease<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(ctFontDesc, 0, nullptr)); in NewFromName() local
548 if (!ctFont) { in NewFromName()
552 SkTypeface* face = SkTypefaceCache::FindByProcAndRef(find_by_CTFontRef, (void*)ctFont.get()); in NewFromName()
554 face = NewFromFontRef(ctFont.detach(), nullptr, nullptr, false); in NewFromName()
760 CTFontRef ctFont = typeface->fFontRef.get(); in SkScalerContext_Mac() local
761 CFIndex numGlyphs = CTFontGetGlyphCount(ctFont); in SkScalerContext_Mac()
777 fCTFont.reset(ctfont_create_exact_copy(ctFont, textSize, nullptr)); in SkScalerContext_Mac()
1473 static void populate_glyph_to_unicode_slow(CTFontRef ctFont, CFIndex glyphCount, in populate_glyph_to_unicode_slow() argument
1481 if (CTFontGetGlyphsForCharacters(ctFont, &unichar, &glyph, 1)) { in populate_glyph_to_unicode_slow()
1494 static void populate_glyph_to_unicode(CTFontRef ctFont, CFIndex glyphCount, in populate_glyph_to_unicode() argument
1496 AutoCFRelease<CFCharacterSetRef> charSet(CTFontCopyCharacterSet(ctFont)); in populate_glyph_to_unicode()
1498 populate_glyph_to_unicode_slow(ctFont, glyphCount, glyphToUnicode); in populate_glyph_to_unicode()
1530 if (mask & (1 << j) && CTFontGetGlyphsForCharacters(ctFont, &unichar, &glyph, 1)) { in populate_glyph_to_unicode()
1537 static bool getWidthAdvance(CTFontRef ctFont, int gId, int16_t* data) { in getWidthAdvance() argument
1541 CTFontGetAdvancesForGlyphs(ctFont, kCTFontHorizontalOrientation, &glyph, &advance, 1); in getWidthAdvance()
1566 AutoCFRelease<CTFontRef> ctFont(ctfont_create_exact_copy( in onGetAdvancedTypefaceMetrics() local
1572 AutoCFRelease<CFStringRef> fontName(CTFontCopyPostScriptName(ctFont)); in onGetAdvancedTypefaceMetrics()
1578 CFIndex glyphCount = CTFontGetGlyphCount(ctFont); in onGetAdvancedTypefaceMetrics()
1580 info->fEmSize = CTFontGetUnitsPerEm(ctFont); in onGetAdvancedTypefaceMetrics()
1583 populate_glyph_to_unicode(ctFont, glyphCount, &info->fGlyphToUnicode); in onGetAdvancedTypefaceMetrics()
1595 CTFontSymbolicTraits symbolicTraits = CTFontGetSymbolicTraits(ctFont); in onGetAdvancedTypefaceMetrics()
1608 info->fItalicAngle = (int16_t) CTFontGetSlantAngle(ctFont); in onGetAdvancedTypefaceMetrics()
1609 info->fAscent = (int16_t) CTFontGetAscent(ctFont); in onGetAdvancedTypefaceMetrics()
1610 info->fDescent = (int16_t) CTFontGetDescent(ctFont); in onGetAdvancedTypefaceMetrics()
1611 info->fCapHeight = (int16_t) CTFontGetCapHeight(ctFont); in onGetAdvancedTypefaceMetrics()
1612 CGRect bbox = CTFontGetBoundingBox(ctFont); in onGetAdvancedTypefaceMetrics()
1630 if (CTFontGetGlyphsForCharacters(ctFont, stem_chars, glyphs, count)) { in onGetAdvancedTypefaceMetrics()
1631 CTFontGetBoundingRectsForGlyphs(ctFont, kCTFontHorizontalOrientation, in onGetAdvancedTypefaceMetrics()
1650 skia_advanced_typeface_metrics_utils::getAdvanceData(ctFont.get(), in onGetAdvancedTypefaceMetrics()
1663 CTFontRef ctFont = typeface->fFontRef.get(); in get_font_type_tag() local
1665 static_cast<CFNumberRef>(CTFontCopyAttribute(ctFont, kCTFontFormatAttribute))); in get_font_type_tag()
1905 static CFDataRef copyTableFromFont(CTFontRef ctFont, SkFontTableTag tag) { in copyTableFromFont() argument
1906 CFDataRef data = CTFontCopyTable(ctFont, (CTFontTableTag) tag, in copyTableFromFont()
1909 AutoCFRelease<CGFontRef> cgFont(CTFontCopyGraphicsFont(ctFont, nullptr)); in copyTableFromFont()
2189 AutoCFRelease<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(desc, 0, nullptr)); in createFromDesc() local
2190 if (!ctFont) { in createFromDesc()
2195 (void)computeStyleBits(ctFont, &isFixedPitch); in createFromDesc()
2197 face = new SkTypeface_Mac(ctFont.detach(), nullptr, cacheRequest.fStyle, isFixedPitch, in createFromDesc()