Lines Matching refs:ctFont
393 CTFontRef ctFont;
398 ctFont = NULL;
428 ctFont = CTFontCreateCopyWithAttributes(ctNamed, 1, NULL,
432 ctFont = CTFontCreateWithFontDescriptor(ctFontDesc, 0, NULL);
443 return ctFont ? NewFromFontRef(ctFont, familyName) : NULL;
625 CTFontRef ctFont = GetFontRefFromFontID(fRec.fFontID);
626 CFIndex numGlyphs = CTFontGetGlyphCount(ctFont);
670 fCTFont = CTFontCreateCopyWithAttributes(ctFont, unitFontSize, &transform,
677 fCTVerticalFont = CTFontCreateCopyWithAttributes(ctFont, unitFontSize,
1530 // Web fonts added to the the CTFont registry do not return their character set.
1533 static void populate_glyph_to_unicode_slow(CTFontRef ctFont,
1541 if (CTFontGetGlyphsForCharacters(ctFont, &unichar, &glyph, 1)) {
1554 static void populate_glyph_to_unicode(CTFontRef ctFont,
1556 CFCharacterSetRef charSet = CTFontCopyCharacterSet(ctFont);
1558 populate_glyph_to_unicode_slow(ctFont, glyphCount, glyphToUnicode);
1590 if (mask & (1 << j) && CTFontGetGlyphsForCharacters(ctFont,
1599 static bool getWidthAdvance(CTFontRef ctFont, int gId, int16_t* data) {
1603 CTFontGetAdvancesForGlyphs(ctFont, kCTFontHorizontalOrientation, &glyph,
1615 CTFontRef ctFont = GetFontRefFromFontID(fontID);
1616 ctFont = CTFontCreateCopyWithAttributes(ctFont, CTFontGetUnitsPerEm(ctFont),
1619 CFStringRef fontName = CTFontCopyPostScriptName(ctFont);
1630 CFIndex glyphCount = CTFontGetGlyphCount(ctFont);
1632 info->fEmSize = CTFontGetUnitsPerEm(ctFont);
1635 populate_glyph_to_unicode(ctFont, glyphCount, &info->fGlyphToUnicode);
1652 CFSafeRelease(ctFont);
1657 CTFontSymbolicTraits symbolicTraits = CTFontGetSymbolicTraits(ctFont);
1675 info->fItalicAngle = CTFontGetSlantAngle(ctFont);
1676 info->fAscent = CTFontGetAscent(ctFont);
1677 info->fDescent = CTFontGetDescent(ctFont);
1678 info->fCapHeight = CTFontGetCapHeight(ctFont);
1679 CGRect bbox = CTFontGetBoundingBox(ctFont);
1691 if (CTFontGetGlyphsForCharacters(ctFont, stem_chars, glyphs, count)) {
1692 CTFontGetBoundingRectsForGlyphs(ctFont, kCTFontHorizontalOrientation,
1715 skia_advanced_typeface_metrics_utils::getAdvanceData(ctFont,
1723 CFSafeRelease(ctFont);
1927 CTFontRef ctFont = GetFontRefFromFontID(fontID);
1928 CFArrayRef cfArray = CTFontCopyAvailableTables(ctFont,
1939 CTFontRef ctFont = GetFontRefFromFontID(fontID);
1940 CFArrayRef cfArray = CTFontCopyAvailableTables(ctFont,
1957 // If, as is the case with web fonts, the CTFont data isn't available,
1959 // right result, leave the CTFont code path to minimize disruption.
1960 static CFDataRef copyTableFromFont(CTFontRef ctFont, SkFontTableTag tag) {
1961 CFDataRef data = CTFontCopyTable(ctFont, (CTFontTableTag) tag,
1964 CGFontRef cgFont = CTFontCopyGraphicsFont(ctFont, NULL);
1972 CTFontRef ctFont = GetFontRefFromFontID(fontID);
1973 CFDataRef srcData = copyTableFromFont(ctFont, tag);
1984 CTFontRef ctFont = GetFontRefFromFontID(fontID);
1985 CFDataRef srcData = copyTableFromFont(ctFont, tag);