Home
last modified time | relevance | path

Searched refs:cgFont (Results 1 – 25 of 26) sorted by relevance

12

/external/webkit/Source/WebCore/platform/wx/wxcode/mac/carbon/
Dnon-kerned-drawing.cpp55 CGFontRef cgFont = font->platformData().cgFont(); in drawTextWithSpacing() local
57 CGContextSetFont(cgContext, cgFont); in drawTextWithSpacing()
75 if (cgFont) in drawTextWithSpacing()
76 CGFontRelease(cgFont); in drawTextWithSpacing()
Dfontprops.mm46 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 …]
/external/webkit/Source/WebCore/platform/graphics/chromium/
DCrossProcessFontLoading.mm76 bool isLastResortFont(CGFontRef cgFont)
78 NSString* fontName = (NSString*)CGFontCopyPostScriptName(cgFont);
111 if (!font->cgFont()) // Object construction failed.
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 …d FontPlatformData::loadFont(NSFont* nsFont, float fontSize, NSFont*& outNSFont, CGFontRef& cgFont)
187 cgFont = CTFontCopyGraphicsFont(toCTFontRef(outNSFont), 0);
188 if (OutOfProcessFontLoadingEnabled() && outNSFont && cgFont && isLastResortFont(cgFont)) {
190 CFRelease(cgFont);
[all …]
DCrossProcessFontLoading.h80 CGFontRef cgFont() { return m_cgFont.get(); } in cgFont() function
/external/webkit/Source/WebCore/platform/graphics/cocoa/
DFontPlatformDataCocoa.mm37 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/
DFontPlatformDataWx.cpp163 CGFontRef FontPlatformData::cgFont() const in cgFont() function in WebCore::FontPlatformData
165 CGFontRef cgFont = 0; in cgFont() local
167 cgFont = CTFontCopyGraphicsFont((CTFontRef)m_font->font()->OSXGetCTFont(), 0); in cgFont()
174 cgFont = CGFontCreateWithPlatformFont((void*)&fontRef); in cgFont()
176 return cgFont; in cgFont()
DFontPlatformData.h165 CGFontRef cgFont() const;
DSimpleFontDataWx.cpp155 if (!wkGetGlyphTransformedAdvances(m_platformData.cgFont(), nsfont, &m, &glyph, &advance)) { in platformWidthForGlyph()
/external/webkit/Source/WebCore/platform/graphics/mac/
DFontCustomPlatformData.h44 FontCustomPlatformData(ATSFontContainerRef container, CGFontRef cgFont) in FontCustomPlatformData()
46 , m_cgFont(cgFont) in FontCustomPlatformData()
DGlyphPageTreeNodeMac.cpp61 … wkGetGlyphsForCharacters(fontData->platformData().cgFont(), buffer, glyphs.data(), bufferLength); in fill()
89 …RetainPtr<CGFontRef> cgFont(AdoptCF, CTFontCopyGraphicsFont(fontData->platformData().ctFont(), 0)); in fill() local
101 if (CFEqual(cgFont.get(), runCGFont.get())) { in fill()
DSimpleFontDataMac.mm63 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)) {
DFontMac.mm99 CGFloat unitsPerEm = CGFontGetUnitsPerEm(platformData.cgFont());
200 CGContextSetFont(cgContext, platformData.cgFont());
/external/webkit/Source/WebCore/platform/graphics/
DFontPlatformData.h185 …FontPlatformData(CGFontRef cgFont, float size, bool syntheticBold, bool syntheticOblique, FontOrie… in FontPlatformData() argument
194 , m_cgFont(cgFont) in FontPlatformData()
223 CGFontRef cgFont() const { return m_cgFont.get(); } in cgFont() function
225 CGFontRef cgFont() const { return m_cgFont; } in cgFont() function
232 CGFontRef cgFont() const { return m_cgFont.get(); } in cgFont() function
/external/webkit/Source/WebCore/platform/graphics/win/
DSimpleFontDataCGWin.cpp62 CGFontRef font = m_platformData.cgFont(); in platformInit()
131 CGFontGetGlyphBBoxes(m_platformData.cgFont(), &glyph, 1, &box); in platformBoundsForGlyph()
146 CGFontRef font = m_platformData.cgFont(); in platformWidthForGlyph()
DGlyphPageTreeNodeCGWin.cpp46 wkGetGlyphs(fontData->platformData().cgFont(), buffer, localGlyphBuffer, bufferLength); in fill()
DFontCustomPlatformData.cpp90 RetainPtr<CGFontRef> cgFont(AdoptCF, CGFontCreateWithPlatformFont(&logFont)); in fontPlatformData() local
91 …return FontPlatformData(hfont, cgFont.get(), size, bold, italic, renderingMode == AlternateRenderi… in fontPlatformData()
DFontCGWin.cpp339 CGContextSetFont(cgContext, platformData.cgFont()); in drawGlyphs()
DFontCacheWin.cpp585 bool fontCreationFailed = !result->cgFont(); in createFontPlatformData()
/external/skia/legacy/src/ports/
DSkFontHost_mac_coretext.cpp261 static SkScalar getFontScale(CGFontRef cgFont) { in getFontScale() argument
262 int unitsPerEm = CGFontGetUnitsPerEm(cgFont); in getFontScale()
345 CGFontRef cgFont = CTFontCopyGraphicsFont(fontRef, NULL); in CTFontRef_to_SkFontID() local
346 AutoCFDataRelease headRef(CGFontCopyTableForTag(cgFont, 'head')); in CTFontRef_to_SkFontID()
357 CGFontRelease(cgFont); in CTFontRef_to_SkFontID()
1964 CGFontRef cgFont = CTFontCopyGraphicsFont(ctFont, NULL); in copyTableFromFont() local
1965 data = CGFontCopyTableForTag(cgFont, tag); in copyTableFromFont()
1966 CGFontRelease(cgFont); in copyTableFromFont()
/external/skia/src/ports/
DSkFontHost_mac_coretext.cpp284 static SkScalar getFontScale(CGFontRef cgFont) { in getFontScale() argument
285 int unitsPerEm = CGFontGetUnitsPerEm(cgFont); in getFontScale()
383 AutoCFRelease<CGFontRef> cgFont(CTFontCopyGraphicsFont(fontRef, NULL)); in CTFontRef_to_SkFontID() local
384 AutoCGTable<SkOTTableHead> headTable(cgFont); in CTFontRef_to_SkFontID()
1832 AutoCFRelease<CGFontRef> cgFont(CTFontCopyGraphicsFont(ctFont, NULL)); in copyTableFromFont() local
1833 data = CGFontCopyTableForTag(cgFont, tag); in copyTableFromFont()
/external/webkit/Source/WebCore/
DChangeLog-2010-05-2413020 (WebCore::FontPlatformData::cgFont):
33934 (WebCore::FontPlatformData::cgFont):
36147 (WebCore::FontCustomPlatformData::FontCustomPlatformData): Removed cgFont
DChangeLog-2008-08-1036041 (WebCore::FontPlatformData::cgFont):
41706 (WebCore::Font::drawGlyphs): Changed to use the cgFont() accessor.
41712 (WebCore::FontPlatformData::cgFont): Added this accessor method.
DChangeLog-2007-10-1430231 (WebCore::FontPlatformData::cgFont):
32734 (WebCore::FontPlatformData::cgFont):
DChangeLog-2010-12-0664572 (WebCore::MemoryActivatedFont::cgFont):
67665 (WebCore::FontPlatformData::cgFont):
DChangeLog37436 (WebCore::FontPlatformData::cgFont):

12