Home
last modified time | relevance | path

Searched refs:m_platformData (Results 1 – 20 of 20) sorted by relevance

/external/webkit/Source/WebCore/platform/graphics/wince/
DSimpleFontDataWinCE.cpp46 if (!m_platformData.isValid()) in platformInit()
49 const TEXTMETRIC& tm = m_platformData.metrics(); in platformInit()
50 m_isSystemFont = m_platformData.isSystemFont(); in platformInit()
52 float ascent = (tm.tmAscent * m_platformData.size() + 36) / 72.0f; in platformInit()
53 float descent = (tm.tmDescent * m_platformData.size() + 36) / 72.0f; in platformInit()
54 float lineGap = (tm.tmExternalLeading * m_platformData.size() + 36) / 72.0f; in platformInit()
72 …FontPlatformData* result = fontCache()->getCachedFontPlatformData(fontDesc, m_platformData.family(… in scaledFontData()
100 if (m_platformData.isDisabled()) in containsCharacters()
116 DWORD fontCodePages = m_platformData.codePages(); in containsCharacters()
139 if (!m_platformData.isValid()) in determinePitch()
[all …]
/external/webkit/Source/WebCore/platform/graphics/freetype/
DSimpleFontDataFreeType.cpp52 cairo_scaled_font_extents(m_platformData.scaledFont(), &font_extents); in platformInit()
69 cairo_scaled_font_text_extents(m_platformData.scaledFont(), "x", &text_extents); in platformInit()
72 cairo_scaled_font_text_extents(m_platformData.scaledFont(), " ", &text_extents); in platformInit()
75 m_syntheticBoldOffset = m_platformData.syntheticBold() ? 1.0f : 0.f; in platformInit()
91 …return new SimpleFontData(FontPlatformData(cairo_scaled_font_get_font_face(m_platformData.scaledFo… in scaledFontData()
92 …scaleFactor * fontDescription.computedSize(), m_platformData.syntheticBold(), m_platformData.synth… in scaledFontData()
119 FT_Face face = cairo_ft_scaled_font_lock_face(m_platformData.scaledFont()); in containsCharacters()
126 cairo_ft_scaled_font_unlock_face(m_platformData.scaledFont()); in containsCharacters()
131 cairo_ft_scaled_font_unlock_face(m_platformData.scaledFont()); in containsCharacters()
138 m_treatAsFixedPitch = m_platformData.isFixedPitch(); in determinePitch()
[all …]
/external/webkit/Source/WebCore/platform/graphics/win/
DSimpleFontDataCGWin.cpp54 m_syntheticBoldOffset = m_platformData.syntheticBold() ? 1.0f : 0.f; in platformInit()
59 if (m_platformData.useGDI()) in platformInit()
62 CGFontRef font = m_platformData.cgFont(); in platformInit()
67 float pointSize = m_platformData.size(); in platformInit()
74 HGDIOBJ oldFont = SelectObject(dc, m_platformData.hfont()); in platformInit()
119 if (!m_platformData.useGDI()) { in platformCharWidthInit()
127 if (m_platformData.useGDI()) in platformBoundsForGlyph()
131 CGFontGetGlyphBBoxes(m_platformData.cgFont(), &glyph, 1, &box); in platformBoundsForGlyph()
132 float pointSize = m_platformData.size(); in platformBoundsForGlyph()
143 if (m_platformData.useGDI()) in platformWidthForGlyph()
[all …]
DSimpleFontDataWin.cpp67 if (!m_platformData.size()) { in initGDIFont()
75 HGDIOBJ oldFont = SelectObject(hdc, m_platformData.hfont()); in initGDIFont()
113 float scaledSize = scaleFactor * m_platformData.size(); in scaledFontData()
115 FontPlatformData scaledFont(m_platformData); in scaledFontData()
121 GetObject(m_platformData.hfont(), sizeof(LOGFONT), &winfont); in scaledFontData()
122 winfont.lfHeight = -lroundf(scaledSize * (m_platformData.useGDI() ? 1 : 32)); in scaledFontData()
124 …FontPlatformData(hfont, scaledSize, m_platformData.syntheticBold(), m_platformData.syntheticObliqu… in scaledFontData()
166 langFontLink->GetFontCodePages(dc, m_platformData.hfont(), &fontCodePages); in containsCharacters()
193 SelectObject(dc, m_platformData.hfont()); in determinePitch()
209 HGDIOBJ oldFont = SelectObject(hdc, m_platformData.hfont()); in boundsForGDIGlyph()
[all …]
DSimpleFontDataCairoWin.cpp50 m_syntheticBoldOffset = m_platformData.syntheticBold() ? 1.0f : 0.f; in platformInit()
52 if (m_platformData.useGDI()) in platformInit()
58 cairo_scaled_font_t* scaledFont = m_platformData.scaledFont(); in platformInit()
59 …metricsMultiplier = cairo_win32_scaled_font_get_metrics_factor(scaledFont) * m_platformData.size(); in platformInit()
104 if (m_platformData.useGDI()) in platformBoundsForGlyph()
112 if (m_platformData.useGDI()) in platformWidthForGlyph()
118 cairo_scaled_font_t* scaledFont = m_platformData.scaledFont(); in platformWidthForGlyph()
129 …metricsMultiplier = cairo_win32_scaled_font_get_metrics_factor(scaledFont) * m_platformData.size(); in platformWidthForGlyph()
/external/webkit/Source/WebCore/platform/graphics/wx/
DSimpleFontDataWx.cpp53 wxFont *font = m_platformData.font(); in platformInit()
125 return wxFontContainsCharacters(m_platformData.hfont(), characters, length); in containsCharacters()
127 return wxFontContainsCharacters(m_platformData.nsFont(), characters, length); in containsCharacters()
134 if (m_platformData.font() && m_platformData.font()->Ok()) in determinePitch()
135 m_treatAsFixedPitch = m_platformData.font()->IsFixedWidth(); in determinePitch()
151 float pointSize = m_platformData.size(); in platformWidthForGlyph()
154 NSFont* nsfont = (NSFont*)m_platformData.nsFont(); in platformWidthForGlyph()
155 if (!wkGetGlyphTransformedAdvances(m_platformData.cgFont(), nsfont, &m, &glyph, &advance)) { in platformWidthForGlyph()
163 GetTextExtent(*m_platformData.font(), (wxChar)glyph, &width, NULL); in platformWidthForGlyph()
188 HGDIOBJ oldFont = SelectObject(hdc, m_platformData.hfont()); in widthForGDIGlyph()
/external/webkit/Source/WebCore/platform/graphics/pango/
DSimpleFontDataPango.cpp51 cairo_scaled_font_extents(m_platformData.m_scaledFont, &font_extents); in platformInit()
67 cairo_scaled_font_text_extents(m_platformData.m_scaledFont, "x", &text_extents); in platformInit()
70 cairo_scaled_font_text_extents(m_platformData.m_scaledFont, " ", &text_extents); in platformInit()
73 m_syntheticBoldOffset = m_platformData.syntheticBold() ? 1.0f : 0.f; in platformInit()
119 …PangoCoverage* coverage = pango_font_get_coverage(m_platformData.m_font, pango_language_get_defaul… in containsCharacters()
140 m_treatAsFixedPitch = m_platformData.isFixedPitch(); in determinePitch()
150 ASSERT(m_platformData.m_scaledFont); in platformWidthForGlyph()
154 cairo_scaled_font_glyph_extents(m_platformData.m_scaledFont, &cglyph, 1, &extents); in platformWidthForGlyph()
157 …if (cairo_scaled_font_status(m_platformData.m_scaledFont) == CAIRO_STATUS_SUCCESS && extents.x_adv… in platformWidthForGlyph()
/external/webkit/Source/WebCore/platform/graphics/qt/
DSimpleFontDataQt.cpp33 m_treatAsFixedPitch = m_platformData.font().fixedPitch(); in determinePitch()
43 if (!m_platformData.size()) { in platformInit()
50 QFontMetricsF fm(m_platformData.font()); in platformInit()
79 if (!m_platformData.size()) in platformGlyphInit()
89 if (!m_platformData.size()) in platformCharWidthInit()
91 QFontMetrics fm(m_platformData.font()); in platformCharWidthInit()
/external/webkit/Source/WebCore/platform/graphics/chromium/
DSimpleFontDataChromiumWin.cpp56 if (!m_platformData.size()) { in platformInit()
64 HGDIOBJ oldFont = SelectObject(dc, m_platformData.hfont()); in platformInit()
68 if (PlatformBridge::ensureFontLoaded(m_platformData.hfont())) { in platformInit()
118 GetObject(m_platformData.hfont(), sizeof(LOGFONT), &winFont); in scaledFontData()
156 HGDIOBJ oldFont = SelectObject(dc, m_platformData.hfont()); in determinePitch()
162 if (PlatformBridge::ensureFontLoaded(m_platformData.hfont())) { in determinePitch()
184 if (!m_platformData.size()) in platformWidthForGlyph()
188 HGDIOBJ oldFont = SelectObject(dc, m_platformData.hfont()); in platformWidthForGlyph()
193 if (PlatformBridge::ensureFontLoaded(m_platformData.hfont())) { in platformWidthForGlyph()
DSimpleFontDataLinux.cpp57 if (!m_platformData.size()) { in platformInit()
67 m_platformData.setupPaint(&paint); in platformInit()
69 const SkFontID fontID = m_platformData.uniqueID(); in platformInit()
72 int pixelSize = m_platformData.size() + 0.5; in platformInit()
130 m_maxCharWidth = SkScalarRound(xRange * SkScalarRound(m_platformData.size())); in platformInit()
161 return new SimpleFontData(FontPlatformData(m_platformData, scaledSize), isCustomFont(), false); in scaledFontData()
190 m_platformData.setupPaint(&paint); in containsCharacters()
222 if (!m_platformData.size()) in platformWidthForGlyph()
229 m_platformData.setupPaint(&paint); in platformWidthForGlyph()
/external/webkit/Source/WebCore/platform/graphics/mac/
DSimpleFontDataMac.mm157 m_syntheticBoldOffset = m_platformData.m_syntheticBold ? 1.0f : 0.f;
169 if ([[m_platformData.font() familyName] isEqual:@"Times"])
177 RetainPtr<NSFont> initialFont = m_platformData.font();
179 if (m_platformData.font())
180m_platformData.setFont([[NSFontManager sharedFontManager] convertFont:m_platformData.font() toFami…
182m_platformData.setFont([NSFont fontWithName:fallbackFontFamily size:m_platformData.size()]);
192m_platformData.setFont([[NSFontManager sharedFontManager] convertFont:m_platformData.font() toFami…
207 [m_platformData.font() familyName], [initialFont.get() familyName], filePath);
213 m_platformData.setFont([NSFont systemFontOfSize:[m_platformData.font() pointSize]]);
214 LOG_ERROR("failed to set up font, using system font %s", m_platformData.font());
[all …]
DSimpleFontDataATSUI.mm52 …ATSUFontID fontID = m_platformData.ctFont() ? CTFontGetPlatformFont(m_platformData.ctFont(), 0) : …
54 LOG_ERROR("unable to get ATSUFontID for %@", m_platformData.font());
/external/webkit/Source/WebCore/platform/graphics/android/fonts/
DFontDataAndroid.cpp49 m_platformData.setupPaint(&paint); in platformInit()
69 const SkFontID fontID = m_platformData.uniqueID(); in platformInit()
93 …m_derivedFontData->smallCaps = new SimpleFontData(FontPlatformData(m_platformData, fontDescription… in smallCapsFontData()
103 …m_derivedFontData->emphasisMark = new SimpleFontData(FontPlatformData(m_platformData, fontDescript… in emphasisMarkFontData()
112 m_platformData.setupPaint(&paint); in containsCharacters()
119 m_treatAsFixedPitch = m_platformData.isFixedPitch(); in determinePitch()
133 m_platformData.setupPaint(&paint); in platformWidthForGlyph()
/external/webkit/Source/WebCore/platform/graphics/haiku/
DSimpleFontDataHaiku.cpp45 const BFont* font = m_platformData.font(); in platformInit()
105 m_treatAsFixedPitch = m_platformData.font() && m_platformData.font()->IsFixed(); in determinePitch()
111 if (!m_platformData.font()) in platformMetricsForGlyph()
117 m_platformData.font()->GetEscapements(encoded.data(), 1, escapements); in platformMetricsForGlyph()
118 metrics.horizontalAdvance = escapements[0] * m_platformData.font()->Size(); in platformMetricsForGlyph()
/external/webkit/Source/WebCore/platform/graphics/
DSimpleFontData.h80 const FontPlatformData& platformData() const { return m_platformData; } in platformData()
149 NSFont* getNSFont() const { return m_platformData.font(); } in getNSFont()
151 NSFont* getNSFont() const { return m_platformData.nsFont(); } in getNSFont()
169 QFont getQtFont() const { return m_platformData.font(); } in getQtFont()
183 wxFont* getWxFont() const { return m_platformData.font(); } in getWxFont()
210 FontPlatformData m_platformData; variable
DSimpleFontData.cpp53 , m_platformData(platformData) in SimpleFontData()
68 : m_platformData(FontPlatformData(size, syntheticBold, syntheticItalic)) in SimpleFontData()
212 FontPlatformData verticalRightPlatformData(m_platformData); in verticalRightOrientationFontData()
224 …m_derivedFontData->uprightOrientation = new SimpleFontData(m_platformData, isCustomFont(), false, … in uprightOrientationFontData()
233 … m_derivedFontData->brokenIdeograph = new SimpleFontData(m_platformData, isCustomFont(), false); in brokenIdeographFontData()
/external/webkit/Source/WebCore/
DChangeLog-2006-05-1014087 (WebCore::FontData:::m_platformData):
DChangeLog28378 (WebCore::DragData::asColor): Replaced references to m_platformData with m_pasteboard.
DChangeLog-2008-08-1078199 Push SVGResourceFilter platform specific data down into m_platformData
DChangeLog-2009-06-162601 - rename SimpleFontData's m_font member to m_platformData