Home
last modified time | relevance | path

Searched refs:fontRef (Results 1 – 10 of 10) sorted by relevance

/external/webkit/Source/WebCore/platform/graphics/mac/
DFontCustomPlatformData.cpp95 ATSFontRef fontRef = 0; in createFontCustomPlatformData() local
96 ATSFontFindFromContainer(containerRef, kATSOptionFlagsDefault, 1, &fontRef, NULL); in createFontCustomPlatformData()
97 if (!fontRef) { in createFontCustomPlatformData()
102 cgFontRef.adoptCF(CGFontCreateWithPlatformFont(&fontRef)); in createFontCustomPlatformData()
/external/webkit/Source/WebCore/platform/graphics/wx/
DFontPlatformDataWx.cpp169 ATSFontRef fontRef; in cgFont() local
171 fontRef = FMGetATSFontRefFromFont(m_atsuFontID); in cgFont()
173 if (fontRef) in cgFont()
174 cgFont = CGFontCreateWithPlatformFont((void*)&fontRef); in cgFont()
/external/webkit/Source/WebCore/platform/wx/wxcode/mac/carbon/
Dfontprops.mm51 ATSFontRef fontRef;
53 fontRef = FMGetATSFontRefFromFont(font->MacGetATSUFontID());
55 if (fontRef)
56 cgFont = CGFontCreateWithPlatformFont((void*)&fontRef);
/external/skia/legacy/src/ports/
DSkFontHost_mac_coretext.cpp336 static SkFontID CTFontRef_to_SkFontID(CTFontRef fontRef) { in CTFontRef_to_SkFontID() argument
337 ATSFontRef ats = CTFontGetPlatformFont(fontRef, NULL); in CTFontRef_to_SkFontID()
345 CGFontRef cgFont = CTFontCopyGraphicsFont(fontRef, NULL); in CTFontRef_to_SkFontID()
354 id = (SkFontID) (uintptr_t) fontRef; in CTFontRef_to_SkFontID()
364 CTFontRef fontRef, const char name[]) in SkTypeface_Mac() argument
366 SkASSERT(fontRef); in SkTypeface_Mac()
367 fFontRef = fontRef; // caller has already called CFRetain for us in SkTypeface_Mac()
377 static SkTypeface* NewFromFontRef(CTFontRef fontRef, const char name[]) { in NewFromFontRef() argument
378 SkASSERT(fontRef); in NewFromFontRef()
380 SkTypeface::Style style = computeStyleBits(fontRef, &isMonospace); in NewFromFontRef()
[all …]
DSkFontHost_freetype_mac.cpp103 SkTypeface* SkCreateTypefaceFromCTFont(CTFontRef fontRef) { in SkCreateTypefaceFromCTFont() argument
DSkFontHost_mac_atsui.cpp275 CGFontRef fontRef = CGFontCreateWithPlatformFont(&fRec.fFontID); in generateImage() local
276 CGContextSetFont(contextRef, fontRef); in generateImage()
/external/skia/src/ports/
DSkFontHost_mac_coretext.cpp369 static SkFontID CTFontRef_to_SkFontID(CTFontRef fontRef) { in CTFontRef_to_SkFontID() argument
374 ATSFontRef ats = CTFontGetPlatformFont(fontRef, NULL); in CTFontRef_to_SkFontID()
383 AutoCFRelease<CGFontRef> cgFont(CTFontCopyGraphicsFont(fontRef, NULL)); in CTFontRef_to_SkFontID()
391 id = (SkFontID) (uintptr_t) fontRef; in CTFontRef_to_SkFontID()
400 CTFontRef fontRef, const char name[]) in SkTypeface_Mac() argument
403 , fFontRef(fontRef) // caller has already called CFRetain for us in SkTypeface_Mac()
405 SkASSERT(fontRef); in SkTypeface_Mac()
417 static SkTypeface* NewFromFontRef(CTFontRef fontRef, const char name[]) { in NewFromFontRef() argument
418 SkASSERT(fontRef); in NewFromFontRef()
420 SkTypeface::Style style = computeStyleBits(fontRef, &isMonospace); in NewFromFontRef()
[all …]
DSkFontHost_freetype_mac.cpp102 SkTypeface* SkCreateTypefaceFromCTFont(CTFontRef fontRef) { in SkCreateTypefaceFromCTFont() argument
DSkFontHost_mac_atsui.cpp275 CGFontRef fontRef = CGFontCreateWithPlatformFont(&fRec.fFontID); in generateImage() local
276 CGContextSetFont(contextRef, fontRef); in generateImage()
/external/webkit/Source/WebCore/platform/graphics/chromium/
DCrossProcessFontLoading.mm65 ATSFontRef fontRef = CTFontGetPlatformFont(toCTFontRef(srcFont), 0);
66 if (!fontRef)
69 if (ATSFontGetContainer(fontRef, 0, &fontContainer) != noErr)