/external/webkit/Source/WebCore/platform/graphics/chromium/ |
CrossProcessFontLoading.mm | 76 bool isLastResortFont(CGFontRef cgFont) 78 NSString* fontName = (NSString*)CGFontCopyPostScriptName(cgFont); 111 if (!font->cgFont()) // Object construction failed. 139 // Cache CGFont representation of the font. 159 // Make sure the CGFont is destroyed before its font container. 167 // Given an NSFont, try to load a representation of that font into the cgFont 173 // * cgFont must be CFRelease()ed by the caller when done. 180 // * cgFont - on output this contains the CGFontRef corresponding to the NSFont 184 void FontPlatformData::loadFont(NSFont* nsFont, float fontSize, NSFont*& outNSFont, CGFontRef& cgFont) 187 cgFont = CTFontCopyGraphicsFont(toCTFontRef(outNSFont), 0) [all...] |
CrossProcessFontLoading.h | 37 typedef struct CGFont* CGFontRef; 80 CGFontRef cgFont() { return m_cgFont.get(); }
|
/external/webkit/Source/WebCore/platform/wx/wxcode/mac/carbon/ |
fontprops.mm | 46 CGFontRef cgFont; 49 cgFont = CTFontCopyGraphicsFont((CTFontRef)font->OSXGetCTFont(), NULL); 56 cgFont = CGFontCreateWithPlatformFont((void*)&fontRef); 59 if (cgFont) { 65 wkGetFontMetrics(cgFont, &iAscent, &iDescent, &iLineGap, &unitsPerEm); 67 iAscent = CGFontGetAscent(cgFont); 68 iDescent = CGFontGetDescent(cgFont); 69 iLineGap = CGFontGetLeading(cgFont); 70 unitsPerEm = CGFontGetUnitsPerEm(cgFont); 87 if (cgFont) [all...] |
non-kerned-drawing.cpp | 55 CGFontRef cgFont = font->platformData().cgFont(); 57 CGContextSetFont(cgContext, cgFont); 75 if (cgFont) 76 CGFontRelease(cgFont);
|
/external/webkit/Source/WebCore/platform/graphics/mac/ |
FontCustomPlatformData.h | 32 typedef struct CGFont* CGFontRef; 44 FontCustomPlatformData(ATSFontContainerRef container, CGFontRef cgFont) 46 , m_cgFont(cgFont)
|
GlyphPageTreeNodeMac.cpp | 61 wkGetGlyphsForCharacters(fontData->platformData().cgFont(), buffer, glyphs.data(), bufferLength); 87 // For the CGFont comparison in the loop, use the CGFont that Core Text assigns to the CTFont. This may 88 // be non-CFEqual to fontData->platformData().cgFont(). 89 RetainPtr<CGFontRef> cgFont(AdoptCF, CTFontCopyGraphicsFont(fontData->platformData().ctFont(), 0)); 100 // Use CGFont here as CFEqual for CTFont counts all attributes for font. 101 if (CFEqual(cgFont.get(), runCGFont.get())) {
|
SimpleFontDataMac.mm | 63 if (!fontData->platformData().cgFont()) 223 wkGetFontMetrics(m_platformData.cgFont(), &iAscent, &iDescent, &iLineGap, &unitsPerEm); 225 iAscent = CGFontGetAscent(m_platformData.cgFont()); 226 iDescent = CGFontGetDescent(m_platformData.cgFont()); 227 iLineGap = CGFontGetLeading(m_platformData.cgFont()); 228 unitsPerEm = CGFontGetUnitsPerEm(m_platformData.cgFont()); 287 xHeight = scaleEmToUnits(CGFontGetXHeight(m_platformData.cgFont()), unitsPerEm) * pointSize; 319 return CGFontCopyTableForTag(platformData.cgFont(), tableName); 477 if (!wkGetGlyphTransformedAdvances(platformData().cgFont(), font, &m, &glyph, &advance)) {
|
FontMac.mm | 99 CGFloat unitsPerEm = CGFontGetUnitsPerEm(platformData.cgFont()); 200 CGContextSetFont(cgContext, platformData.cgFont());
|
/external/webkit/Source/WebCore/platform/graphics/cocoa/ |
FontPlatformDataCocoa.mm | 37 void FontPlatformData::loadFont(NSFont* nsFont, float, NSFont*& outNSFont, CGFontRef& cgFont) 41 cgFont = CTFontCopyGraphicsFont(toCTFontRef(nsFont), 0); 43 cgFont = wkGetCGFontFromNSFont(nsFont); 67 CGFontRef cgFont = 0; 68 loadFont(nsFont, size, m_font, cgFont); 74 m_cgFont.adoptCF(cgFont); 76 m_cgFont = cgFont; 135 CGFontRef cgFont = 0; 137 loadFont(m_font, m_size, loadedFont, cgFont); 150 m_cgFont.adoptCF(cgFont); [all...] |
/external/webkit/Source/WebCore/platform/graphics/wx/ |
FontPlatformDataWx.cpp | 163 CGFontRef FontPlatformData::cgFont() const 165 CGFontRef cgFont = 0; 167 cgFont = CTFontCopyGraphicsFont((CTFontRef)m_font->font()->OSXGetCTFont(), 0); 174 cgFont = CGFontCreateWithPlatformFont((void*)&fontRef); 176 return cgFont;
|
FontPlatformData.h | 165 CGFontRef cgFont() const;
|
SimpleFontDataWx.cpp | 155 if (!wkGetGlyphTransformedAdvances(m_platformData.cgFont(), nsfont, &m, &glyph, &advance)) {
|
/external/webkit/Source/WebCore/platform/graphics/win/ |
GlyphPageTreeNodeCGWin.cpp | 46 wkGetGlyphs(fontData->platformData().cgFont(), buffer, localGlyphBuffer, bufferLength);
|
SimpleFontDataCGWin.cpp | 62 CGFontRef font = m_platformData.cgFont(); 131 CGFontGetGlyphBBoxes(m_platformData.cgFont(), &glyph, 1, &box); 146 CGFontRef font = m_platformData.cgFont();
|
FontCustomPlatformData.cpp | 90 RetainPtr<CGFontRef> cgFont(AdoptCF, CGFontCreateWithPlatformFont(&logFont)); 91 return FontPlatformData(hfont, cgFont.get(), size, bold, italic, renderingMode == AlternateRenderingMode);
|
FontCGWin.cpp | 339 CGContextSetFont(cgContext, platformData.cgFont());
|
FontCacheWin.cpp | 563 // This masks rounding errors related to the HFONT metrics being different from the CGFont metrics. 585 bool fontCreationFailed = !result->cgFont();
|
/external/webkit/Source/WebCore/platform/graphics/ |
FontPlatformData.h | 66 typedef struct CGFont* CGFontRef; 90 typedef struct CGFont* CGFontRef; 185 FontPlatformData(CGFontRef cgFont, float size, bool syntheticBold, bool syntheticOblique, FontOrientation orientation, 194 , m_cgFont(cgFont) 223 CGFontRef cgFont() const { return m_cgFont.get(); } 225 CGFontRef cgFont() const { return m_cgFont; } 232 CGFontRef cgFont() const { return m_cgFont.get(); } 307 // * cgFont - CGFontRef representing the input font at the specified point size.
|
/external/skia/legacy/src/ports/ |
SkFontHost_mac_coretext.cpp | 261 static SkScalar getFontScale(CGFontRef cgFont) { 262 int unitsPerEm = CGFontGetUnitsPerEm(cgFont); 345 CGFontRef cgFont = CTFontCopyGraphicsFont(fontRef, NULL); 346 AutoCFDataRelease headRef(CGFontCopyTableForTag(cgFont, 'head')); 357 CGFontRelease(cgFont); 874 * TODO: A future optimization will compute fAdjustBad once per CGFont, and [all...] |
/external/skia/src/ports/ |
SkFontHost_mac_coretext.cpp | 284 static SkScalar getFontScale(CGFontRef cgFont) { 285 int unitsPerEm = CGFontGetUnitsPerEm(cgFont); 383 AutoCFRelease<CGFontRef> cgFont(CTFontCopyGraphicsFont(fontRef, NULL)); 384 AutoCGTable<SkOTTableHead> headTable(cgFont); 850 * TODO: A future optimization will compute fFBoundingBoxes once per CGFont, and [all...] |