/external/skia/src/ports/ |
D | SkTypeface_mac_ct.cpp | 442 static void populate_glyph_to_unicode_slow(CTFontRef ctFont, CFIndex glyphCount, in populate_glyph_to_unicode_slow() argument 448 if (CTFontGetGlyphsForCharacters(ctFont, &unichar, &glyph, 1)) { in populate_glyph_to_unicode_slow() 463 CTFontRef ctFont, in get_plane_glyph_map() argument 485 if (CTFontGetGlyphsForCharacters(ctFont, utf16, glyphs, count)) { in get_plane_glyph_map() 499 static void populate_glyph_to_unicode(CTFontRef ctFont, CFIndex glyphCount, in populate_glyph_to_unicode() argument 502 SkUniqueCFRef<CFCharacterSetRef> charSet(CTFontCopyCharacterSet(ctFont)); in populate_glyph_to_unicode() 504 populate_glyph_to_unicode_slow(ctFont, glyphCount, glyphToUnicode); in populate_glyph_to_unicode() 520 get_plane_glyph_map(bits, ctFont, glyphCount, glyphToUnicode, 0); in populate_glyph_to_unicode() 542 get_plane_glyph_map(bits, ctFont, glyphCount, glyphToUnicode, planeIndex); in populate_glyph_to_unicode() 547 SkUniqueCFRef<CTFontRef> ctFont = in getGlyphToUnicodeMap() local [all …]
|
D | SkFontMgr_mac_ct.cpp | 49 SkUniqueCFRef<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(desc, 0, nullptr)); in create_from_desc() local 50 if (!ctFont) { in create_from_desc() 54 return SkTypeface_Mac::Make(std::move(ctFont), OpszVariation(), nullptr); in create_from_desc() 147 SkUniqueCFRef<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(desc, 0, nullptr)); in create_from_desc_and_style() local 148 if (!ctFont) { in create_from_desc_and_style() 152 const CTFontSymbolicTraits traits = CTFontGetSymbolicTraits(ctFont.get()); in create_from_desc_and_style() 163 ctFont.get(), 0, nullptr, expected_traits, expected_traits)); in create_from_desc_and_style() 165 ctFont = std::move(ctNewFont); in create_from_desc_and_style() 169 return SkTypeface_Mac::Make(std::move(ctFont), OpszVariation(), nullptr); in create_from_desc_and_style()
|
D | SkScalerContext_mac_ct.cpp | 124 CTFontRef ctFont = (CTFontRef)this->getTypeface()->internal_private_getCTFontRef(); in SkScalerContext_Mac() local 144 fCTFont = SkCTFontCreateExactCopy(ctFont, textSize, in SkScalerContext_Mac()
|
/external/skia/src/utils/mac/ |
D | SkCTFont.cpp | 236 SkUniqueCFRef<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(desc.get(), 16, nullptr)); in SkCTFontGetSmoothBehavior() local 237 SkASSERT(ctFont); in SkCTFontGetSmoothBehavior() 251 CTFontDrawGlyphs(ctFont.get(), &spiderGlyph, &point, 1, noSmoothContext.get()); in SkCTFontGetSmoothBehavior() 252 CTFontDrawGlyphs(ctFont.get(), &spiderGlyph, &point, 1, smoothContext.get()); in SkCTFontGetSmoothBehavior() 375 SkUniqueCFRef<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(desc.get(), 9, nullptr)); in SkCTFontGetDataFontWeightMapping() local 376 if (!ctFont) { in SkCTFontGetDataFontWeightMapping() 379 SkUniqueCFRef<CTFontDescriptorRef> desc2(CTFontCopyFontDescriptor(ctFont.get())); in SkCTFontGetDataFontWeightMapping()
|
/external/skqp/src/ports/ |
D | SkFontHost_mac.cpp | 405 SkUniqueCFRef<CTFontRef> ctFont( in smooth_behavior() local 407 SkASSERT(ctFont); in smooth_behavior() 421 CTFontDrawGlyphs(ctFont.get(), &spiderGlyph, &point, 1, noSmoothContext.get()); in smooth_behavior() 422 CTFontDrawGlyphs(ctFont.get(), &spiderGlyph, &point, 1, smoothContext.get()); in smooth_behavior() 791 SkUniqueCFRef<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(desc, 0, nullptr)); in create_from_desc() local 792 if (!ctFont) { in create_from_desc() 796 return create_from_CTFontRef(std::move(ctFont), nullptr, false); in create_from_desc() 980 CTFontRef ctFont = (CTFontRef)this->getTypeface()->internal_private_getCTFontRef(); in SkScalerContext_Mac() local 981 CFIndex numGlyphs = CTFontGetGlyphCount(ctFont); in SkScalerContext_Mac() 1003 fCTFont = ctfont_create_exact_copy(ctFont, textSize, nullptr); in SkScalerContext_Mac() [all …]
|