Searched defs:fontData (Results 1 - 25 of 49) sorted by relevance

12

/external/webkit/Source/WebCore/platform/graphics/freetype/
H A DGlyphPageTreeNodeFreeType.cpp41 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) argument
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());
H A DFontCacheFreeType.cpp66 FcPattern* findBestFontGivenFallbacks(const FontPlatformData& fontData, FcPattern* pattern) argument
68 if (!fontData.m_pattern)
71 if (!fontData.m_fallbacks) {
73 fontData.m_fallbacks = FcFontSort(0, fontData.m_pattern.get(), FcTrue, 0, &fontConfigResult);
76 if (!fontData.m_fallbacks)
79 FcFontSet* sets[] = { fontData.m_fallbacks };
87 const FontPlatformData& fontData = font.primaryFont()->platformData(); local
89 RefPtr<FcPattern> fallbackPattern = adoptRef(findBestFontGivenFallbacks(fontData, pattern.get()));
/external/webkit/Source/WebCore/platform/graphics/win/
H A DGlyphPageTreeNodeCGWin.cpp37 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) argument
46 wkGetGlyphs(fontData->platformData().cgFont(), buffer, localGlyphBuffer, bufferLength);
52 setGlyphDataForIndex(offset + i, glyph, fontData);
H A DGlyphPageTreeNodeCairoWin.cpp36 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) argument
47 SelectObject(dc, fontData->platformData().hfont());
61 setGlyphDataForIndex(offset + i, glyph, fontData);
/external/webkit/Source/WebCore/platform/graphics/
H A DFontFallbackList.cpp76 const FontData* fontData = primaryFontData(font); local
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();
118 const FontData* fontData = fontCache()->getCachedFontData(&platformData); local
119 m_fontList.append(pair<const FontData*, bool>(fontData, fontData->isCustomFont()));
H A DGlyphPageTreeNode.h56 , fontData(f)
60 const SimpleFontData* fontData; member in struct:WebCore::GlyphData
116 setGlyphDataForIndex(index, glyphData.glyph, glyphData.fontData);
188 static GlyphPageTreeNode* getRootChild(const FontData* fontData, unsigned pageNumber)
190 return getRoot(pageNumber)->getChild(fontData, pageNumber);
H A DSegmentedFontData.h37 FontDataRange(UChar32 from, UChar32 to, const SimpleFontData* fontData) argument
40 , m_fontData(fontData)
46 const SimpleFontData* fontData() const { return m_fontData; } function in struct:WebCore::FontDataRange
H A DWidthIterator.cpp125 const SimpleFontData* fontData = glyphData.fontData; local
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 !
[all...]
H A DFont.cpp65 Font::Font(const FontPlatformData& fontData, bool isPrinterFont, FontSmoothingMode fontSmoothingMode) argument
74 m_fontList->setPlatformFont(fontData);
H A DGlyphPageTreeNode.cpp126 void GlyphPageTreeNode::pruneTreeCustomFontData(const FontData* fontData) argument
132 it->second->pruneCustomFontData(fontData);
136 pageZeroRoot->pruneCustomFontData(fontData);
139 void GlyphPageTreeNode::pruneTreeFontData(const SimpleFontData* fontData) argument
144 it->second->pruneFontData(fontData);
148 pageZeroRoot->pruneFontData(fontData);
157 static bool fill(GlyphPage* pageToFill, unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) argument
159 if (!fontData->isSVGFont())
160 return pageToFill->fill(offset, length, buffer, bufferLength, fontData);
169 void GlyphPageTreeNode::initializePage(const FontData* fontData, unsigne argument
348 getChild(const FontData* fontData, unsigned pageNumber) argument
378 pruneCustomFontData(const FontData* fontData) argument
405 pruneFontData(const SimpleFontData* fontData, unsigned level) argument
[all...]
/external/webkit/Source/WebCore/platform/graphics/chromium/
H A DUniscribeHelperTextRun.cpp110 const FontData *fontData = m_font->fontDataAt(m_fontIndex); local
111 if (!fontData) {
120 fontData->fontDataForCharacter(' ');
H A DGlyphPageTreeNodeChromiumWin.cpp71 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;
188 const SimpleFontData* fontData)
193 fontData->platformData().hfont(),
194 fontData->platformData().scriptCache(),
195 fontData->platformData().scriptFontProperties());
207 page->setGlyphDataForIndex(offset + i, glyph, fontData);
67 fillBMPGlyphs(unsigned offset, unsigned length, UChar* buffer, GlyphPage* page, const SimpleFontData* fontData, bool recurse) argument
184 fillNonBMPGlyphs(unsigned offset, unsigned length, UChar* buffer, GlyphPage* page, const SimpleFontData* fontData) argument
218 fill(unsigned offset, unsigned length, UChar* characterBuffer, unsigned bufferLength, const SimpleFontData* fontData) argument
[all...]
H A DComplexTextControllerLinux.cpp162 m_currentFontData = m_font->glyphDataForCharacter(m_item.string[m_item.item.pos], false).fontData;
165 const SimpleFontData* nextFontData = m_font->glyphDataForCharacter(m_item.string[m_item.item.pos + endOfRun], false).fontData;
202 const FontData* fontData = m_font->glyphDataForCharacter(m_item.string[m_item.item.pos], false, fontDataVariant).fontData; local
203 const FontPlatformData& platformData = fontData->fontDataForCharacter(' ')->platformData();
/external/webkit/Source/WebCore/platform/graphics/haiku/
H A DGlyphPageTreeNodeHaiku.cpp41 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* characterBuffer, unsigned bufferLength, const SimpleFontData* fontData) argument
60 setGlyphDataForIndex(offset + i, character, fontData);
/external/webkit/Source/WebCore/platform/graphics/wince/
H A DGlyphPageTreeNodeWinCE.cpp36 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) argument
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/wx/
H A DGlyphMapWx.cpp38 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) argument
53 setGlyphDataForIndex(offset + i, character, fontData);
H A DFontCacheWx.cpp44 SimpleFontData* fontData = 0; local
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;
/external/webkit/Source/WebCore/platform/graphics/pango/
H A DGlyphPageTreeNodePango.cpp74 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) argument
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/skia/
H A DGlyphPageTreeNodeSkia.cpp44 static int substituteWithVerticalGlyphs(const SimpleFontData* fontData, uint16_t* glyphs, unsigned bufferLength) argument
46 HB_FaceRec_* hbFace = fontData->platformData().harfbuzzFace();
74 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) argument
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/css/
H A DCSSFontFace.cpp121 void CSSFontFace::retireCustomFont(SimpleFontData* fontData) argument
124 GlyphPageTreeNode::pruneTreeCustomFontData(fontData);
125 delete fontData;
131 (*m_segmentedFontFaces.begin())->fontSelector()->retireCustomFont(fontData);
H A DCSSFontFaceSource.cpp112 SimpleFontData* fontData = fontCache()->getCachedFontData(fontDescription, m_string); local
115 return fontData;
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();
H A DCSSSegmentedFontFace.cpp94 SegmentedFontData* fontData = m_fontDataTable.get(hashKey); local
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;
123 fontData
[all...]
/external/webkit/Source/WebCore/platform/graphics/android/fonts/
H A DGlyphMapAndroid.cpp91 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) argument
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);
/external/webkit/Source/WebCore/platform/graphics/mac/
H A DGlyphPageTreeNodeMac.cpp40 static bool shouldUseCoreText(UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) argument
42 if (fontData->platformData().widthVariant() != RegularWidth || fontData->hasVerticalGlyphs()) {
54 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) argument
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
[all...]
H A DComplexTextControllerCoreText.cpp45 ComplexTextController::ComplexTextRun::ComplexTextRun(CTRunRef ctRun, const SimpleFontData* fontData, const UChar* characters, unsigned stringLocation, size_t stringLength, CFRange runRange) argument
46 : m_fontData(fontData)
123 void ComplexTextController::collectComplexTextRunsForCharactersCoreText(const UChar* cp, unsigned length, unsigned stringLocation, const SimpleFontData* fontData) argument
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
[all...]

Completed in 3928 milliseconds

12