Home
last modified time | relevance | path

Searched refs:ctFont (Results 1 – 5 of 5) sorted by relevance

/third_party/skia/src/ports/
DSkTypeface_mac_ct.cpp441 static void populate_glyph_to_unicode_slow(CTFontRef ctFont, CFIndex glyphCount, in populate_glyph_to_unicode_slow() argument
447 if (CTFontGetGlyphsForCharacters(ctFont, &unichar, &glyph, 1)) { in populate_glyph_to_unicode_slow()
462 CTFontRef ctFont, in get_plane_glyph_map() argument
484 if (CTFontGetGlyphsForCharacters(ctFont, utf16, glyphs, count)) { in get_plane_glyph_map()
498 static void populate_glyph_to_unicode(CTFontRef ctFont, CFIndex glyphCount, in populate_glyph_to_unicode() argument
501 SkUniqueCFRef<CFCharacterSetRef> charSet(CTFontCopyCharacterSet(ctFont)); in populate_glyph_to_unicode()
503 populate_glyph_to_unicode_slow(ctFont, glyphCount, glyphToUnicode); in populate_glyph_to_unicode()
519 get_plane_glyph_map(bits, ctFont, glyphCount, glyphToUnicode, 0); in populate_glyph_to_unicode()
541 get_plane_glyph_map(bits, ctFont, glyphCount, glyphToUnicode, planeIndex); in populate_glyph_to_unicode()
546 SkUniqueCFRef<CTFontRef> ctFont = in getGlyphToUnicodeMap() local
[all …]
DSkFontMgr_mac_ct.cpp76 SkUniqueCFRef<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(desc, 0, nullptr)); in create_from_desc() local
77 if (!ctFont) { in create_from_desc()
81 return SkTypeface_Mac::Make(std::move(ctFont), OpszVariation(), nullptr); in create_from_desc()
174 SkUniqueCFRef<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(desc, 0, nullptr)); in create_from_desc_and_style() local
175 if (!ctFont) { in create_from_desc_and_style()
179 const CTFontSymbolicTraits traits = CTFontGetSymbolicTraits(ctFont.get()); in create_from_desc_and_style()
190 ctFont.get(), 0, nullptr, expected_traits, expected_traits)); in create_from_desc_and_style()
192 ctFont = std::move(ctNewFont); in create_from_desc_and_style()
196 return SkTypeface_Mac::Make(std::move(ctFont), OpszVariation(), nullptr); in create_from_desc_and_style()
DSkScalerContext_mac_ct.cpp124 CTFontRef ctFont = (CTFontRef)this->getTypeface()->internal_private_getCTFontRef(); in SkScalerContext_Mac() local
144 fCTFont = SkCTFontCreateExactCopy(ctFont, textSize, in SkScalerContext_Mac()
/third_party/skia/src/utils/mac/
DSkCTFont.cpp236 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()
/third_party/flutter/skia/src/ports/
DSkFontHost_mac.cpp394 SkUniqueCFRef<CTFontRef> ctFont( in smooth_behavior() local
396 SkASSERT(ctFont); in smooth_behavior()
410 CTFontDrawGlyphs(ctFont.get(), &spiderGlyph, &point, 1, noSmoothContext.get()); in smooth_behavior()
411 CTFontDrawGlyphs(ctFont.get(), &spiderGlyph, &point, 1, smoothContext.get()); in smooth_behavior()
794 SkUniqueCFRef<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(desc, 0, nullptr)); in create_from_desc() local
795 if (!ctFont) { in create_from_desc()
799 return create_from_CTFontRef(std::move(ctFont), nullptr, nullptr); in create_from_desc()
863 SkUniqueCFRef<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(desc, 0, nullptr)); in create_from_desc_and_style() local
864 if (!ctFont) { in create_from_desc_and_style()
868 const CTFontSymbolicTraits traits = CTFontGetSymbolicTraits(ctFont.get()); in create_from_desc_and_style()
[all …]