Lines Matching defs:ctFont

486     CTFontRef ctFont = NULL;
523 ctFont = CTFontCreateWithFontDescriptor(ctFontDesc, 0, NULL);
527 return ctFont ? NewFromFontRef(ctFont, familyName, false) : NULL;
730 CTFontRef ctFont = typeface->fFontRef.get();
731 CFIndex numGlyphs = CTFontGetGlyphCount(ctFont);
753 fCTFont.reset(CTFontCreateCopyWithAttributes(ctFont, 1, &transform, ctFontDesc));
758 fCTVerticalFont.reset(CTFontCreateCopyWithAttributes(ctFont, 1, &transform, NULL));
1442 static void populate_glyph_to_unicode_slow(CTFontRef ctFont, CFIndex glyphCount,
1450 if (CTFontGetGlyphsForCharacters(ctFont, &unichar, &glyph, 1)) {
1463 static void populate_glyph_to_unicode(CTFontRef ctFont, CFIndex glyphCount,
1465 AutoCFRelease<CFCharacterSetRef> charSet(CTFontCopyCharacterSet(ctFont));
1467 populate_glyph_to_unicode_slow(ctFont, glyphCount, glyphToUnicode);
1499 if (mask & (1 << j) && CTFontGetGlyphsForCharacters(ctFont, &unichar, &glyph, 1)) {
1506 static bool getWidthAdvance(CTFontRef ctFont, int gId, int16_t* data) {
1510 CTFontGetAdvancesForGlyphs(ctFont, kCTFontHorizontalOrientation, &glyph, &advance, 1);
1533 AutoCFRelease<CTFontRef> ctFont(CTFontCreateCopyWithAttributes(
1538 AutoCFRelease<CFStringRef> fontName(CTFontCopyPostScriptName(ctFont));
1544 CFIndex glyphCount = CTFontGetGlyphCount(ctFont);
1546 info->fEmSize = CTFontGetUnitsPerEm(ctFont);
1551 populate_glyph_to_unicode(ctFont, glyphCount, &info->fGlyphToUnicode);
1570 CTFontSymbolicTraits symbolicTraits = CTFontGetSymbolicTraits(ctFont);
1583 info->fItalicAngle = (int16_t) CTFontGetSlantAngle(ctFont);
1584 info->fAscent = (int16_t) CTFontGetAscent(ctFont);
1585 info->fDescent = (int16_t) CTFontGetDescent(ctFont);
1586 info->fCapHeight = (int16_t) CTFontGetCapHeight(ctFont);
1587 CGRect bbox = CTFontGetBoundingBox(ctFont);
1605 if (CTFontGetGlyphsForCharacters(ctFont, stem_chars, glyphs, count)) {
1606 CTFontGetBoundingRectsForGlyphs(ctFont, kCTFontHorizontalOrientation,
1625 skia_advanced_typeface_metrics_utils::getAdvanceData(ctFont.get(),
1638 CTFontRef ctFont = typeface->fFontRef.get();
1640 static_cast<CFNumberRef>(CTFontCopyAttribute(ctFont, kCTFontFormatAttribute)));
1770 static CFDataRef copyTableFromFont(CTFontRef ctFont, SkFontTableTag tag) {
1771 CFDataRef data = CTFontCopyTable(ctFont, (CTFontTableTag) tag,
1774 AutoCFRelease<CGFontRef> cgFont(CTFontCopyGraphicsFont(ctFont, NULL));
2121 CTFontRef ctFont = CTFontCreateCopyWithAttributes(ctNamed, 1, NULL, desc);
2122 if (NULL == ctFont) {
2130 (void)computeStyleBits(ctFont, &isFixedPitch);
2131 SkFontID fontID = CTFontRef_to_SkFontID(ctFont);
2134 ctFont, str.c_str(), false));