HomeSort by relevance Sort by last modified time
    Searched refs:fontData (Results 1 - 25 of 87) sorted by null

1 2 3 4

  /external/webkit/Source/WebCore/platform/graphics/freetype/
GlyphPageTreeNodeFreeType.cpp 41 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData)
48 FT_Face face = cairo_ft_scaled_font_lock_face(fontData->platformData().scaledFont());
58 setGlyphDataForIndex(offset + i, glyph, fontData);
63 cairo_ft_scaled_font_unlock_face(fontData->platformData().scaledFont());
  /external/webkit/Source/WebCore/platform/graphics/wx/
FontCacheWx.cpp 44 SimpleFontData* fontData = 0;
45 fontData = getCachedFontData(font.fontDescription(), font.family().family());
46 if (!fontData->containsCharacters(characters, length))
47 fontData = getSimilarFontPlatformData(font);
48 if (!fontData->containsCharacters(characters, length))
49 fontData = getLastResortFallbackFont(font.fontDescription());
51 ASSERT(fontData);
52 return fontData;
GlyphMapWx.cpp 38 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData)
53 setGlyphDataForIndex(offset + i, character, fontData);
  /external/webkit/Source/WebCore/platform/graphics/chromium/
GlyphPageTreeNodeChromiumWin.cpp 71 const SimpleFontData* fontData,
75 HGDIOBJ oldFont = SelectObject(dc, fontData->platformData().hfont());
83 if (PlatformBridge::ensureFontLoaded(fontData->platformData().hfont()))
84 return fillBMPGlyphs(offset, length, buffer, page, fontData, false);
145 const SimpleFontData* glyphFontData = fontData;
154 // WebKit expects both the glyph index and FontData
188 const SimpleFontData* fontData)
193 fontData->platformData().hfont(),
194 fontData->platformData().scriptCache(),
195 fontData->platformData().scriptFontProperties())
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/win/
GlyphPageTreeNodeCGWin.cpp 37 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData)
46 wkGetGlyphs(fontData->platformData().cgFont(), buffer, localGlyphBuffer, bufferLength);
52 setGlyphDataForIndex(offset + i, glyph, fontData);
GlyphPageTreeNodeCairoWin.cpp 36 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData)
47 SelectObject(dc, fontData->platformData().hfont());
61 setGlyphDataForIndex(offset + i, glyph, fontData);
UniscribeController.cpp 112 // We break up itemization of the string by fontData and (if needed) the use of small caps.
127 const SimpleFontData* fontData;
128 const SimpleFontData* nextFontData = m_font.glyphDataForCharacter(*curr, false).fontData;
143 fontData = nextFontData;
149 nextFontData = m_font.glyphDataForCharacter(*curr, false, forceSmallCaps ? SmallCapsVariant : AutoVariant).fontData;
156 if (m_fallbackFonts && nextFontData != fontData && fontData != m_font.primaryFont())
157 m_fallbackFonts->add(fontData);
159 if (nextFontData != fontData || nextIsSmallCaps != isSmallCaps) {
163 itemizeShapeAndPlace((isSmallCaps ? smallCapsBuffer.data() : cp) + itemStart, itemLength, fontData, glyphBuffer)
    [all...]
  /external/skia/src/sfnt/
SkOTUtils.h 34 static SkData* RenameFont(SkStream* fontData, const char* fontName, int fontNameLen);
  /external/webkit/Source/WebCore/css/
CSSSegmentedFontFace.cpp 86 FontData* CSSSegmentedFontFace::getFontData(const FontDescription& fontDescription)
94 SegmentedFontData* fontData = m_fontDataTable.get(hashKey);
95 if (fontData)
96 return fontData;
98 fontData = new SegmentedFontData();
112 fontData->appendRange(FontDataRange(0, 0x7FFFFFFF, faceFontData));
115 fontData->appendRange(FontDataRange(ranges[j].from(), ranges[j].to(), faceFontData));
119 if (fontData->numRanges())
120 m_fontDataTable.set(hashKey, fontData);
122 delete fontData;
    [all...]
CSSFontFaceSource.cpp 112 SimpleFontData* fontData = fontCache()->getCachedFontData(fontDescription, m_string);
115 return fontData;
118 // See if we have a mapping in our FontData cache.
124 OwnPtr<SimpleFontData> fontData;
158 fontData.set(new SimpleFontData(adoptPtr(new SVGFontData(fontFaceElement)), fontDescription.computedPixelSize(), syntheticBold, syntheticItalic));
167 fontData.set(new SimpleFontData(m_font->platformDataFromCustomData(fontDescription.computedPixelSize(), syntheticBold, syntheticItalic, fontDescription.orientation(),
174 fontData.set(new SimpleFontData(adoptPtr(new SVGFontData(m_svgFontFaceElement.get())), fontDescription.computedPixelSize(), syntheticBold, syntheticItalic));
186 fontData.set(new SimpleFontData(tempData->platformData(), true, true));
189 SimpleFontData* fontDataRawPtr = fontData.leakPtr();
CSSFontFace.cpp 121 void CSSFontFace::retireCustomFont(SimpleFontData* fontData)
124 GlyphPageTreeNode::pruneTreeCustomFontData(fontData);
125 delete fontData;
131 (*m_segmentedFontFaces.begin())->fontSelector()->retireCustomFont(fontData);
  /external/webkit/Source/WebCore/platform/graphics/
GlyphPageTreeNode.cpp 93 HashMap<const FontData*, GlyphPageTreeNode*>::const_iterator end = m_children.end();
94 for (HashMap<const FontData*, GlyphPageTreeNode*>::const_iterator it = m_children.begin(); it != end; ++it) {
119 HashMap<const FontData*, GlyphPageTreeNode*>::const_iterator end = m_children.end();
120 for (HashMap<const FontData*, GlyphPageTreeNode*>::const_iterator it = m_children.begin(); it != end; ++it)
126 void GlyphPageTreeNode::pruneTreeCustomFontData(const FontData* fontData)
132 it->second->pruneCustomFontData(fontData);
136 pageZeroRoot->pruneCustomFontData(fontData);
139 void GlyphPageTreeNode::pruneTreeFontData(const SimpleFontData* fontData)
144 it->second->pruneFontData(fontData);
    [all...]
FontFallbackList.cpp 76 const FontData* fontData = primaryFontData(font);
77 if (!fontData->isSegmented())
78 m_pitch = static_cast<const SimpleFontData*>(fontData)->pitch();
80 const SegmentedFontData* segmentedFontData = static_cast<const SegmentedFontData*>(fontData);
83 m_pitch = segmentedFontData->rangeAt(0).fontData()->pitch();
89 const FontData* FontFallbackList::fontDataAt(const Font* font, unsigned realizedFontIndex) const
105 const FontData* result = fontCache()->getFontData(*font, m_familyIndex, m_fontSelector.get());
107 m_fontList.append(pair<const FontData*, bool>(result, result->isCustomFont()));
118 const FontData* fontData = fontCache()->getCachedFontData(&platformData)
    [all...]
SegmentedFontData.h 29 #include "FontData.h"
37 FontDataRange(UChar32 from, UChar32 to, const SimpleFontData* fontData)
40 , m_fontData(fontData)
46 const SimpleFontData* fontData() const { return m_fontData; }
54 class SegmentedFontData : public FontData {
WidthIterator.cpp 125 const SimpleFontData* fontData = glyphData.fontData;
127 ASSERT(fontData);
132 float tabWidth = m_font->tabWidth(*fontData);
135 width = fontData->widthForGlyph(glyph);
143 if (fontData != lastFontData && width) {
144 lastFontData = fontData;
145 if (m_fallbackFonts && fontData != primaryFont) {
149 m_fallbackFonts->add(fontData);
152 if (uppercaseGlyphData.fontData != primaryFont
    [all...]
SegmentedFontData.cpp 44 return it->fontData();
46 return m_ranges[0].fontData();
80 if (it->fontData()->isLoading())
FontFastPath.cpp 80 if (data.fontData && (data.fontData->platformData().orientation() == Horizontal || data.fontData->isTextOrientationFallback()))
83 if (data.fontData) {
85 if (!data.fontData->hasVerticalGlyphs()) {
88 const SimpleFontData* brokenIdeographFontData = data.fontData->brokenIdeographFontData();
93 if (brokenIdeographData.fontData)
102 const SimpleFontData* verticalRightFontData = data.fontData->verticalRightOrientationFontData();
112 if (verticalRightData.fontData)
116 const SimpleFontData* uprightFontData = data.fontData->uprightOrientationFontData()
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/pango/
GlyphPageTreeNodePango.cpp 74 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData)
81 if (!fontData->platformData().m_font || fontData->platformData().m_font == reinterpret_cast<PangoFont*>(-1))
86 Glyph glyph = pango_font_get_glyph(fontData->platformData().m_font, fontData->platformData().m_context, buffer[i]);
90 setGlyphDataForIndex(offset + i, glyph, fontData);
  /external/webkit/Source/WebCore/platform/graphics/wince/
GlyphPageTreeNodeWinCE.cpp 26 #include "FontData.h"
36 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData)
41 if (fontData->platformData().hfont()) {
42 DWORD fontCodePages = fontData->platformData().codePages();
49 setGlyphDataForIndex(offset + i, buffer[i], fontData);
63 setGlyphDataForIndex(offset + i, buffer[i], fontData);
73 setGlyphDataForIndex(offset + i, buffer[i], fontData);
  /external/webkit/Source/WebCore/platform/graphics/skia/
GlyphPageTreeNodeSkia.cpp 44 static int substituteWithVerticalGlyphs(const SimpleFontData* fontData, uint16_t* glyphs, unsigned bufferLength)
46 HB_FaceRec_* hbFace = fontData->platformData().harfbuzzFace();
74 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData)
82 fontData->platformData().setupPaint(&paint);
94 if (fontData->hasVerticalGlyphs()) {
103 substituteWithVerticalGlyphs(fontData, glyphs, bufferLength);
108 setGlyphDataForIndex(offset + i, glyphs[i], glyphs[i] ? fontData : NULL);
  /external/webkit/Source/WebCore/platform/graphics/mac/
GlyphPageTreeNodeMac.cpp 40 static bool shouldUseCoreText(UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData)
42 if (fontData->platformData().widthVariant() != RegularWidth || fontData->hasVerticalGlyphs()) {
54 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData)
59 if (!shouldUseCoreText(buffer, bufferLength, fontData)) {
61 wkGetGlyphsForCharacters(fontData->platformData().cgFont(), buffer, glyphs.data(), bufferLength);
66 setGlyphDataForIndex(offset + i, glyphs[i], fontData);
73 RetainPtr<CFAttributedStringRef> attributedString(AdoptCF, CFAttributedStringCreate(kCFAllocatorDefault, string.get(), fontData->getCFStringAttributes(0, fontData->hasVerticalGlyphs() ? Vertical : Horizontal)));
88 // be non-CFEqual to fontData->platformData().cgFont()
    [all...]
ComplexTextControllerCoreText.cpp 45 ComplexTextController::ComplexTextRun::ComplexTextRun(CTRunRef ctRun, const SimpleFontData* fontData, const UChar* characters, unsigned stringLocation, size_t stringLength, CFRange runRange)
46 : m_fontData(fontData)
123 void ComplexTextController::collectComplexTextRunsForCharactersCoreText(const UChar* cp, unsigned length, unsigned stringLocation, const SimpleFontData* fontData)
125 if (!fontData) {
131 if (m_fallbackFonts && fontData != m_font.primaryFont())
132 m_fallbackFonts->add(fontData);
146 ProviderInfo info = { cp, length, fontData->getCFStringAttributes(m_font.typesettingFeatures(), fontData->platformData().orientation()) };
150 RetainPtr<CFAttributedStringRef> attributedString(AdoptCF, CFAttributedStringCreate(kCFAllocatorDefault, string.get(), fontData->getCFStringAttributes(m_font.typesettingFeatures(), fontData->platformData().orientation())))
    [all...]
ComplexTextControllerATSUI.cpp 144 ComplexTextController::ComplexTextRun::ComplexTextRun(ATSUTextLayout atsuTextLayout, const SimpleFontData* fontData, const UChar* characters, unsigned stringLocation, size_t stringLength, bool ltr, bool directionalOverride)
145 : m_fontData(fontData)
162 bool shouldCheckForMirroring = !ltr && !fontData->m_ATSUMirrors;
163 bool shouldCheckForArabic = !fontData->shapesArabic();
262 static void disableLigatures(const SimpleFontData* fontData, ATSUStyle atsuStyle, TypesettingFeatures typesettingFeatures)
267 if ((typesettingFeatures & Ligatures) || (fontData->platformData().orientation() == Horizontal && fontData->platformData().allowsLigatures()))
277 static ATSUStyle initializeATSUStyle(const SimpleFontData* fontData, TypesettingFeatures typesettingFeatures)
280 pair<HashMap<unsigned, ATSUStyle>::iterator, bool> addResult = fontData->m_ATSUStyleMap.add(key, 0);
285 ATSUFontID fontID = fontData->platformData().ctFont() ? CTFontGetPlatformFont(fontData->platformData().ctFont(), 0) : 0
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/haiku/
GlyphPageTreeNodeHaiku.cpp 41 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* characterBuffer, unsigned bufferLength, const SimpleFontData* fontData)
60 setGlyphDataForIndex(offset + i, character, fontData);
  /external/webkit/Source/WebCore/platform/graphics/android/fonts/
GlyphMapAndroid.cpp 91 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData)
99 fontData->platformData().setupPaint(&paint);
107 if (fontData->platformData().orientation() == Vertical && !fontData->hasVerticalGlyphs()) {
119 if (fontData->hasVerticalGlyphs()) {
128 if (substituteWithVerticalGlyphs(fontData->platformData(), glyphs, bufferLength)) {
154 setGlyphDataForIndex(offset + i, glyphID, fontData);
160 setGlyphDataForIndex(offset + i, glyphID, fontData);

Completed in 626 milliseconds

1 2 3 4