Home | History | Annotate | Download | only in ports

Lines Matching defs:ctFont

486     CTFontRef ctFont = NULL;
523 ctFont = CTFontCreateWithFontDescriptor(ctFontDesc, 0, NULL);
527 return ctFont ? NewFromFontRef(ctFont, familyName) : NULL;
730 CTFontRef ctFont = typeface->fFontRef.get();
731 CFIndex numGlyphs = CTFontGetGlyphCount(ctFont);
753 fCTFont = CTFontCreateCopyWithAttributes(ctFont, 1, &transform, ctFontDesc);
758 fCTVerticalFont = CTFontCreateCopyWithAttributes(ctFont, 1, &transform, NULL);
1444 // Web fonts added to the the CTFont registry do not return their character set.
1447 static void populate_glyph_to_unicode_slow(CTFontRef ctFont, CFIndex glyphCount,
1455 if (CTFontGetGlyphsForCharacters(ctFont, &unichar, &glyph, 1)) {
1468 static void populate_glyph_to_unicode(CTFontRef ctFont, CFIndex glyphCount,
1470 AutoCFRelease<CFCharacterSetRef> charSet(CTFontCopyCharacterSet(ctFont));
1472 populate_glyph_to_unicode_slow(ctFont, glyphCount, glyphToUnicode);
1504 if (mask & (1 << j) && CTFontGetGlyphsForCharacters(ctFont, &unichar, &glyph, 1)) {
1511 static bool getWidthAdvance(CTFontRef ctFont, int gId, int16_t* data) {
1515 CTFontGetAdvancesForGlyphs(ctFont, kCTFontHorizontalOrientation, &glyph, &advance, 1);
1538 AutoCFRelease<CTFontRef> ctFont(CTFontCreateCopyWithAttributes(
1543 AutoCFRelease<CFStringRef> fontName(CTFontCopyPostScriptName(ctFont));
1547 CFIndex glyphCount = CTFontGetGlyphCount(ctFont);
1549 info->fEmSize = CTFontGetUnitsPerEm(ctFont);
1554 populate_glyph_to_unicode(ctFont, glyphCount, &info->fGlyphToUnicode);
1573 CTFontSymbolicTraits symbolicTraits = CTFontGetSymbolicTraits(ctFont);
1586 info->fItalicAngle = (int16_t) CTFontGetSlantAngle(ctFont);
1587 info->fAscent = (int16_t) CTFontGetAscent(ctFont);
1588 info->fDescent = (int16_t) CTFontGetDescent(ctFont);
1589 info->fCapHeight = (int16_t) CTFontGetCapHeight(ctFont);
1590 CGRect bbox = CTFontGetBoundingBox(ctFont);
1608 if (CTFontGetGlyphsForCharacters(ctFont, stem_chars, glyphs, count)) {
1609 CTFontGetBoundingRectsForGlyphs(ctFont, kCTFontHorizontalOrientation,
1628 skia_advanced_typeface_metrics_utils::getAdvanceData(ctFont.get(),
1641 CTFontRef ctFont = typeface->fFontRef.get();
1643 static_cast<CFNumberRef>(CTFontCopyAttribute(ctFont, kCTFontFormatAttribute)));
1770 // If, as is the case with web fonts, the CTFont data isn't available,
1772 // right result, leave the CTFont code path to minimize disruption.
1773 static CFDataRef copyTableFromFont(CTFontRef ctFont, SkFontTableTag tag) {
1774 CFDataRef data = CTFontCopyTable(ctFont, (CTFontTableTag) tag,
1777 AutoCFRelease<CGFontRef> cgFont(CTFontCopyGraphicsFont(ctFont, NULL));
2118 CTFontRef ctFont = CTFontCreateCopyWithAttributes(ctNamed, 1, NULL, desc);
2119 if (NULL == ctFont) {
2127 (void)computeStyleBits(ctFont, &isFixedPitch);
2128 SkFontID fontID = CTFontRef_to_SkFontID(ctFont);
2131 ctFont, str.c_str()));