Lines Matching refs:ctFont
427 CTFontRef ctFont = NULL;
468 ctFont = CTFontCreateCopyWithAttributes(ctNamed, 1, NULL, ctFontDesc);
470 ctFont = CTFontCreateWithFontDescriptor(ctFontDesc, 0, NULL);
475 return ctFont ? NewFromFontRef(ctFont, familyName) : NULL;
648 CTFontRef ctFont = GetFontRefFromFontID(fRec.fFontID);
649 CFIndex numGlyphs = CTFontGetGlyphCount(ctFont);
691 fCTFont = CTFontCreateCopyWithAttributes(ctFont, unitFontSize, &transform, ctFontDesc);
696 fCTVerticalFont = CTFontCreateCopyWithAttributes(ctFont, unitFontSize, &transform, NULL);
1375 // Web fonts added to the the CTFont registry do not return their character set.
1378 static void populate_glyph_to_unicode_slow(CTFontRef ctFont, CFIndex glyphCount,
1386 if (CTFontGetGlyphsForCharacters(ctFont, &unichar, &glyph, 1)) {
1399 static void populate_glyph_to_unicode(CTFontRef ctFont, CFIndex glyphCount,
1401 AutoCFRelease<CFCharacterSetRef> charSet(CTFontCopyCharacterSet(ctFont));
1403 populate_glyph_to_unicode_slow(ctFont, glyphCount, glyphToUnicode);
1435 if (mask & (1 << j) && CTFontGetGlyphsForCharacters(ctFont, &unichar, &glyph, 1)) {
1442 static bool getWidthAdvance(CTFontRef ctFont, int gId, int16_t* data) {
1446 CTFontGetAdvancesForGlyphs(ctFont, kCTFontHorizontalOrientation, &glyph, &advance, 1);
1470 AutoCFRelease<CTFontRef> ctFont(CTFontCreateCopyWithAttributes(
1475 AutoCFRelease<CFStringRef> fontName(CTFontCopyPostScriptName(ctFont));
1480 CFIndex glyphCount = CTFontGetGlyphCount(ctFont);
1482 info->fEmSize = CTFontGetUnitsPerEm(ctFont);
1485 populate_glyph_to_unicode(ctFont, glyphCount, &info->fGlyphToUnicode);
1506 CTFontSymbolicTraits symbolicTraits = CTFontGetSymbolicTraits(ctFont);
1522 info->fItalicAngle = (int16_t) CTFontGetSlantAngle(ctFont);
1523 info->fAscent = (int16_t) CTFontGetAscent(ctFont);
1524 info->fDescent = (int16_t) CTFontGetDescent(ctFont);
1525 info->fCapHeight = (int16_t) CTFontGetCapHeight(ctFont);
1526 CGRect bbox = CTFontGetBoundingBox(ctFont);
1544 if (CTFontGetGlyphsForCharacters(ctFont, stem_chars, glyphs, count)) {
1545 CTFontGetBoundingRectsForGlyphs(ctFont, kCTFontHorizontalOrientation,
1567 skia_advanced_typeface_metrics_utils::getAdvanceData(ctFont.get(),
1580 CTFontRef ctFont = GetFontRefFromFontID(uniqueID);
1582 static_cast<CFNumberRef>(CTFontCopyAttribute(ctFont, kCTFontFormatAttribute)));
1694 CTFontRef ctFont = typeface_to_fontref(face);
1698 desc.setFamilyName(get_str(CTFontCopyFamilyName(ctFont), &tmpStr));
1699 desc.setFullName(get_str(CTFontCopyFullName(ctFont), &tmpStr));
1700 desc.setPostscriptName(get_str(CTFontCopyPostScriptName(ctFont), &tmpStr));
1799 CTFontRef ctFont = GetFontRefFromFontID(fontID);
1800 AutoCFRelease<CFArrayRef> cfArray(CTFontCopyAvailableTables(ctFont,
1809 CTFontRef ctFont = GetFontRefFromFontID(fontID);
1810 AutoCFRelease<CFArrayRef> cfArray(CTFontCopyAvailableTables(ctFont,
1826 // If, as is the case with web fonts, the CTFont data isn't available,
1828 // right result, leave the CTFont code path to minimize disruption.
1829 static CFDataRef copyTableFromFont(CTFontRef ctFont, SkFontTableTag tag) {
1830 CFDataRef data = CTFontCopyTable(ctFont, (CTFontTableTag) tag, kCTFontTableOptionNoOptions);
1832 AutoCFRelease<CGFontRef> cgFont(CTFontCopyGraphicsFont(ctFont, NULL));
1839 CTFontRef ctFont = GetFontRefFromFontID(fontID);
1840 AutoCFRelease<CFDataRef> srcData(copyTableFromFont(ctFont, tag));
1849 CTFontRef ctFont = GetFontRefFromFontID(fontID);
1850 AutoCFRelease<CFDataRef> srcData(copyTableFromFont(ctFont, tag));