Lines Matching defs:ctFont
487 CTFontRef ctFont = NULL;
524 ctFont = CTFontCreateWithFontDescriptor(ctFontDesc, 0, NULL);
528 return ctFont ? NewFromFontRef(ctFont, familyName) : NULL;
735 CTFontRef ctFont = typeface->fFontRef.get();
736 CFIndex numGlyphs = CTFontGetGlyphCount(ctFont);
758 fCTFont = CTFontCreateCopyWithAttributes(ctFont, 1, &transform, ctFontDesc);
763 fCTVerticalFont = CTFontCreateCopyWithAttributes(ctFont, 1, &transform, NULL);
1447 // Web fonts added to the the CTFont registry do not return their character set.
1450 static void populate_glyph_to_unicode_slow(CTFontRef ctFont, CFIndex glyphCount,
1458 if (CTFontGetGlyphsForCharacters(ctFont, &unichar, &glyph, 1)) {
1471 static void populate_glyph_to_unicode(CTFontRef ctFont, CFIndex glyphCount,
1473 AutoCFRelease<CFCharacterSetRef> charSet(CTFontCopyCharacterSet(ctFont));
1475 populate_glyph_to_unicode_slow(ctFont, glyphCount, glyphToUnicode);
1507 if (mask & (1 << j) && CTFontGetGlyphsForCharacters(ctFont, &unichar, &glyph, 1)) {
1514 static bool getWidthAdvance(CTFontRef ctFont, int gId, int16_t* data) {
1518 CTFontGetAdvancesForGlyphs(ctFont, kCTFontHorizontalOrientation, &glyph, &advance, 1);
1541 AutoCFRelease<CTFontRef> ctFont(CTFontCreateCopyWithAttributes(
1546 AutoCFRelease<CFStringRef> fontName(CTFontCopyPostScriptName(ctFont));
1551 CFIndex glyphCount = CTFontGetGlyphCount(ctFont);
1553 info->fEmSize = CTFontGetUnitsPerEm(ctFont);
1556 populate_glyph_to_unicode(ctFont, glyphCount, &info->fGlyphToUnicode);
1577 CTFontSymbolicTraits symbolicTraits = CTFontGetSymbolicTraits(ctFont);
1590 info->fItalicAngle = (int16_t) CTFontGetSlantAngle(ctFont);
1591 info->fAscent = (int16_t) CTFontGetAscent(ctFont);
1592 info->fDescent = (int16_t) CTFontGetDescent(ctFont);
1593 info->fCapHeight = (int16_t) CTFontGetCapHeight(ctFont);
1594 CGRect bbox = CTFontGetBoundingBox(ctFont);
1612 if (CTFontGetGlyphsForCharacters(ctFont, stem_chars, glyphs, count)) {
1613 CTFontGetBoundingRectsForGlyphs(ctFont, kCTFontHorizontalOrientation,
1635 skia_advanced_typeface_metrics_utils::getAdvanceData(ctFont.get(),
1648 CTFontRef ctFont = typeface->fFontRef.get();
1650 static_cast<CFNumberRef>(CTFontCopyAttribute(ctFont, kCTFontFormatAttribute)));
1777 // If, as is the case with web fonts, the CTFont data isn't available,
1779 // right result, leave the CTFont code path to minimize disruption.
1780 static CFDataRef copyTableFromFont(CTFontRef ctFont, SkFontTableTag tag) {
1781 CFDataRef data = CTFontCopyTable(ctFont, (CTFontTableTag) tag,
1784 AutoCFRelease<CGFontRef> cgFont(CTFontCopyGraphicsFont(ctFont, NULL));
2083 CTFontRef ctFont = CTFontCreateCopyWithAttributes(ctNamed, 1, NULL, desc);
2084 if (NULL == ctFont) {
2092 (void)computeStyleBits(ctFont, &isFixedPitch);
2093 SkFontID fontID = CTFontRef_to_SkFontID(ctFont);
2096 ctFont, str.c_str()));