/external/chromium_org/third_party/WebKit/Source/core/css/ |
LocalFontFaceSource.cpp | 23 RefPtr<SimpleFontData> fontData = FontCache::fontCache()->getFontData(fontDescription, m_fontName, true); 24 m_histograms.record(fontData); 25 return fontData.release();
|
CSSFontFaceSource.cpp | 56 // See if we have a mapping in our FontData cache. 60 RefPtr<SimpleFontData>& fontData = m_fontDataTable.add(key.hash(), nullptr).storedValue->value; 61 if (!fontData) 62 fontData = createFontData(fontDescription); 63 return fontData; // No release, because fontData is a reference to a RefPtr that is held in the m_fontDataTable.
|
CSSSegmentedFontFace.cpp | 127 PassRefPtr<FontData> CSSSegmentedFontFace::getFontData(const FontDescription& fontDescription) 136 RefPtr<SegmentedFontData>& fontData = m_fontDataTable.add(key.hash(), nullptr).storedValue->value; 137 if (fontData && fontData->numRanges()) 138 return fontData; // No release, we have a reference to an object in the cache which should retain the ref count it has. 140 if (!fontData) 141 fontData = SegmentedFontData::create(); 159 appendFontData(fontData.get(), faceFontData.release(), (*it)->cssFontFace()->ranges()); 162 if (fontData->numRanges()) 163 return fontData; // No release, we have a reference to an object in the cache which should retain the ref count it (…) [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/fonts/ |
GlyphPageTreeNode.cpp | 96 void GlyphPageTreeNode::pruneTreeCustomFontData(const FontData* fontData) 102 it->value->pruneCustomFontData(fontData); 106 pageZeroRoot->pruneCustomFontData(fontData); 109 void GlyphPageTreeNode::pruneTreeFontData(const SimpleFontData* fontData) 114 it->value->pruneFontData(fontData); 118 pageZeroRoot->pruneFontData(fontData); 121 static bool fill(GlyphPage* pageToFill, unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) 124 if (fontData->isSVGFont()) 125 return fontData->customFontData()->fillSVGGlyphPage(pageToFill, offset, length, buffer, bufferLength, fontData) [all...] |
FontCacheTest.cpp | 36 RefPtr<SimpleFontData> fontData = fontCache->getLastResortFallbackFont(fontDescription, Retain); 37 EXPECT_TRUE(fontData); 40 fontData = fontCache->getLastResortFallbackFont(fontDescription, Retain); 41 EXPECT_TRUE(fontData);
|
SegmentedFontData.h | 30 #include "platform/fonts/FontData.h" 38 FontDataRange(UChar32 from, UChar32 to, PassRefPtr<SimpleFontData> fontData) 41 , m_fontData(fontData) 48 PassRefPtr<SimpleFontData> fontData() const { return m_fontData; } 56 class PLATFORM_EXPORT SegmentedFontData : public FontData { 85 DEFINE_TYPE_CASTS(SegmentedFontData, FontData, fontData, fontData->isSegmented(), fontData.isSegmented());
|
FontFallbackList.cpp | 81 const FontData* fontData = primaryFontData(fontDescription); 82 if (!fontData->isSegmented()) 83 m_pitch = static_cast<const SimpleFontData*>(fontData)->pitch(); 85 const SegmentedFontData* segmentedFontData = static_cast<const SegmentedFontData*>(fontData); 88 m_pitch = segmentedFontData->rangeAt(0).fontData()->pitch(); 120 const FontData* FontFallbackList::primaryFontData(const FontDescription& fontDescription) const 125 const FontData* fontData = fontDataAt(fontDescription, fontIndex); 126 if (!fontData) { [all...] |
GlyphPage.h | 52 , fontData(f) 56 const SimpleFontData* fontData; 80 static PassRefPtr<GlyphPage> createForSingleFontData(GlyphPageTreeNode* owner, const SimpleFontData* fontData) 82 ASSERT(fontData); 83 return adoptRef(new GlyphPage(owner, fontData)); 140 void setGlyphDataForIndex(unsigned index, Glyph glyph, const SimpleFontData* fontData) 148 m_perGlyphFontData[index] = glyph ? fontData : 0; 153 ASSERT(!glyph || fontData == m_fontDataForAllGlyphs); 158 setGlyphDataForIndex(index, glyphData.glyph, glyphData.fontData); 178 void removeFontDataFromSystemFallbackPage(const SimpleFontData* fontData) [all...] |
GlyphPageTreeNodeTest.cpp | 92 EXPECT_EQ(dataAtoC, node2->page()->glyphDataForCharacter('A').fontData); 93 EXPECT_EQ(dataAtoC, node2->page()->glyphDataForCharacter('C').fontData); 94 EXPECT_EQ(dataCtoE, node2->page()->glyphDataForCharacter('E').fontData); 111 EXPECT_EQ(0, node->page()->glyphDataForCharacter('A').fontData); 112 EXPECT_EQ(dataBtoC, node->page()->glyphDataForCharacter('B').fontData); 113 EXPECT_EQ(dataBtoC, node->page()->glyphDataForCharacter('C').fontData); 114 EXPECT_EQ(dataCtoE, node->page()->glyphDataForCharacter('D').fontData); 115 EXPECT_EQ(0, node->page()->glyphDataForCharacter('E').fontData); 150 EXPECT_EQ(0, node->page()->glyphDataForCharacter('A').fontData); 151 EXPECT_EQ(dataBtoD, node->page()->glyphDataForCharacter('B').fontData); [all...] |
WidthIterator.cpp | 157 const SimpleFontData* fontData = glyphData.fontData; 159 ASSERT(fontData); 164 width = m_font->tabWidth(*fontData, m_run.tabSize(), m_run.xPos() + m_runWidthSoFar + widthSinceLastRounding); 166 width = fontData->widthForGlyph(glyph); 175 if (m_run.applyWordRounding() && width == fontData->spaceWidth() && (fontData->pitch() == FixedPitch || glyph == fontData->spaceGlyph())) 176 width = fontData->adjustedSpaceWidth(); 179 if (fontData != lastFontData && width) [all...] |
FontDataCache.cpp | 70 // If shouldRetain is DoNotRetain and count is 0, we want to remove the fontData from 83 void FontDataCache::release(const SimpleFontData* fontData) 85 ASSERT(!fontData->isCustomFont()); 87 Cache::iterator it = m_cache.find(fontData->platformData()); 101 for (Cache::iterator fontData = m_cache.begin(); fontData != end; ++fontData) { 102 OpenTypeVerticalData* verticalData = const_cast<OpenTypeVerticalData*>(fontData->value.first->verticalData()); 122 static bool isPurging; // Guard against reentry when e.g. a deleted FontData releases its small caps FontData [all...] |
SegmentedFontData.cpp | 45 return it->fontData().get(); 47 return m_ranges[0].fontData().get(); 70 if (it->fontData()->isLoading()) 81 if (it->fontData()->isLoadingFallback()) 96 if (it->fontData()->shouldSkipDrawing())
|
Font.cpp | 79 // Our FontData don't have to be checked, since checking the font description will be fine. 363 RefPtr<SimpleFontData> uprightFontData = data.fontData->uprightOrientationFontData(); 373 if (uprightData.fontData) 377 RefPtr<SimpleFontData> verticalRightFontData = data.fontData->verticalRightOrientationFontData(); 387 if (verticalRightData.fontData) 433 if (data.fontData && (data.fontData->platformData().orientation() == Horizontal || data.fontData->isTextOrientationFallback())) 436 if (data.fontData) { 438 if (!data.fontData->hasVerticalGlyphs()) [all...] |
GlyphPageTreeNode.h | 47 class FontData; 50 // The glyph page tree is a data structure that maps (FontData, glyph page number) 56 // Each root node maps a FontData pointer to another GlyphPageTreeNode at 64 // A NULL FontData pointer corresponds to the system fallback 73 static GlyphPageTreeNode* getRootChild(const FontData* fontData, unsigned pageNumber) 75 return getRoot(pageNumber)->getChild(fontData, pageNumber); 78 static void pruneTreeCustomFontData(const FontData*); 81 void pruneCustomFontData(const FontData*); 85 GlyphPageTreeNode* getChild(const FontData*, unsigned pageNumber) [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/fonts/android/ |
FontCacheAndroidTest.cpp | 25 RefPtr<SimpleFontData> fontData = fontCache->fallbackFontForCharacter(fontDescription, testChar, 0); 26 EXPECT_TRUE(fontData);
|
/external/chromium_org/third_party/WebKit/Source/core/svg/ |
SVGFontData.cpp | 64 void SVGFontData::initializeFontData(SimpleFontData* fontData, float fontSize) 66 ASSERT(fontData); 73 missingGlyphData.fontData = fontData; 75 fontData->setMissingGlyphData(missingGlyphData); 77 fontData->setZeroWidthSpaceGlyph(0); 78 fontData->determinePitch(); 87 GlyphPage* glyphPageZero = GlyphPageTreeNode::getRootChild(fontData, 0)->page(); 92 xHeight = letterXGlyph ? fontData->widthForGlyph(letterXGlyph) : 2 * ascent / 3; 95 FontMetrics& fontMetrics = fontData->fontMetrics() [all...] |
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/ |
SVGTextRunRenderingContext.cpp | 39 static inline const SVGFontData* svgFontAndFontFaceElementForFontData(const SimpleFontData* fontData, SVGFontFaceElement*& fontFace, SVGFontElement*& font) 41 ASSERT(fontData); 42 ASSERT(fontData->isCustomFont()); 43 ASSERT(fontData->isSVGFont()); 45 RefPtr<CustomFontData> customFontData = fontData->customFontData(); 88 void SVGTextRunRenderingContext::drawSVGGlyphs(GraphicsContext* context, const TextRun& run, const SimpleFontData* fontData, const GlyphBuffer& glyphBuffer, int from, int numGlyphs, const FloatPoint& point) const 93 const SVGFontData* svgFontData = svgFontAndFontFaceElementForFontData(fontData, fontFaceElement, fontElement); 118 float scale = scaleEmToUnits(fontData->platformData().size(), fontFaceElement->unitsPerEm()); 188 if (glyphData.glyph == missingGlyphData.glyph && glyphData.fontData == missingGlyphData.fontData) { [all...] |
SVGTextLayoutEngineSpacing.cpp | 50 const SimpleFontData* fontData = m_font.primaryFont(); 51 if (!fontData->isSVGFont()) { 56 ASSERT(fontData->isCustomFont()); 57 ASSERT(fontData->isSVGFont()); 59 RefPtr<CustomFontData> customFontData = fontData->customFontData();
|
/external/pdfium/core/src/fpdfapi/fpdf_page/ |
fpdf_page_doc.cpp | 172 CPDF_CountedObject<CPDF_Font*>* fontData;
173 m_FontMap.GetNextAssoc(pos, fontDict, fontData);
174 nCount = fontData->m_nCount;
176 delete fontData->m_Obj;
177 fontData->m_Obj = NULL;
253 CPDF_CountedObject<CPDF_Font*>* fontData;
254 if (m_FontMap.Lookup(pFontDict, fontData)) {
255 if (!fontData->m_Obj) {
258 fontData->m_nCount ++;
259 return fontData->m_Obj; [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/fonts/harfbuzz/ |
HarfBuzzFaceSkia.cpp | 87 static hb_bool_t harfBuzzGetGlyph(hb_font_t* hbFont, void* fontData, hb_codepoint_t unicode, hb_codepoint_t variationSelector, hb_codepoint_t* glyph, void* userData) 89 HarfBuzzFontData* hbFontData = reinterpret_cast<HarfBuzzFontData*>(fontData); 104 static hb_position_t harfBuzzGetGlyphHorizontalAdvance(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, void* userData) 106 HarfBuzzFontData* hbFontData = reinterpret_cast<HarfBuzzFontData*>(fontData); 113 static hb_bool_t harfBuzzGetGlyphHorizontalOrigin(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_position_t* x, hb_position_t* y, void* userData) 120 static hb_position_t harfBuzzGetGlyphHorizontalKerning(hb_font_t*, void* fontData, hb_codepoint_t leftGlyph, hb_codepoint_t rightGlyph, void*) 122 HarfBuzzFontData* hbFontData = reinterpret_cast<HarfBuzzFontData*>(fontData); 142 static hb_position_t harfBuzzGetGlyphVerticalKerning(hb_font_t*, void* fontData, hb_codepoint_t topGlyph, hb_codepoint_t bottomGlyph, void*) 144 HarfBuzzFontData* hbFontData = reinterpret_cast<HarfBuzzFontData*>(fontData); 164 static hb_bool_t harfBuzzGetGlyphExtents(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_glyph_extents_t* extents, void* userData [all...] |
HarfBuzzFaceCoreText.cpp | 48 static hb_bool_t getGlyph(hb_font_t* hbFont, void* fontData, hb_codepoint_t unicode, hb_codepoint_t variationSelector, hb_codepoint_t* glyph, void* userData) 50 CTFontRef ctFont = reinterpret_cast<FontPlatformData*>(fontData)->ctFont(); 61 static hb_position_t getGlyphHorizontalAdvance(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, void* userData) 63 CTFontRef ctFont = reinterpret_cast<FontPlatformData*>(fontData)->ctFont(); 69 static hb_bool_t getGlyphHorizontalOrigin(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_position_t* x, hb_position_t* y, void* userData) 74 static hb_bool_t getGlyphExtents(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_glyph_extents_t* extents, void* userData) 76 CTFontRef ctFont = reinterpret_cast<FontPlatformData*>(fontData)->ctFont();
|
/frameworks/base/core/jni/android/graphics/ |
HarfBuzzNGFaceSkia.cpp | 79 static hb_bool_t harfbuzzGetGlyph(hb_font_t* hbFont, void* fontData, hb_codepoint_t unicode, hb_codepoint_t variationSelector, hb_codepoint_t* glyph, void* userData) 81 HarfBuzzFontData* hbFontData = reinterpret_cast<HarfBuzzFontData*>(fontData); 97 static hb_position_t harfbuzzGetGlyphHorizontalAdvance(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, void* userData) 99 HarfBuzzFontData* hbFontData = reinterpret_cast<HarfBuzzFontData*>(fontData); 106 static hb_bool_t harfbuzzGetGlyphHorizontalOrigin(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_position_t* x, hb_position_t* y, void* userData) 113 static hb_bool_t harfbuzzGetGlyphExtents(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_glyph_extents_t* extents, void* userData) 115 HarfBuzzFontData* hbFontData = reinterpret_cast<HarfBuzzFontData*>(fontData);
|
/external/chromium_org/third_party/WebKit/Source/platform/fonts/mac/ |
ComplexTextControllerCoreText.mm | 65 // FontData, so this loop does not hit the FontCache. 86 const WebCore::SimpleFontData* fontData = _font->fontDataAt(index)->fontDataForCharacter(_character); 87 fontDescriptor = CTFontCopyFontDescriptor(fontData->platformData().ctFont()); 96 ComplexTextController::ComplexTextRun::ComplexTextRun(CTRunRef ctRun, const SimpleFontData* fontData, const UChar* characters, unsigned stringLocation, size_t stringLength, CFRange runRange) 97 : m_fontData(fontData) 131 ComplexTextController::ComplexTextRun::ComplexTextRun(const SimpleFontData* fontData, const UChar* characters, unsigned stringLocation, size_t stringLength, bool ltr) 132 : m_fontData(fontData) 184 void ComplexTextController::collectComplexTextRunsForCharacters(const UChar* cp, unsigned length, unsigned stringLocation, const SimpleFontData* fontData) 186 if (!fontData) { 196 if (fontData == SimpleFontData::systemFallback()) [all...] |
FontComplexTextMac.cpp | 170 return baseCharacterGlyphData.fontData; 175 for (const FontData* fontData = fontDataAt(0); fontData; fontData = fontDataAt(++i)) { 176 const SimpleFontData* simpleFontData = fontData->fontDataForCharacter(baseCharacter); 199 if (simpleFontData == baseCharacterGlyphData.fontData) 206 if (!triedBaseCharacterFontData && baseCharacterGlyphData.fontData && baseCharacterGlyphData.fontData->canRenderCombiningCharacterSequence(characters, length)) 207 return baseCharacterGlyphData.fontData; [all...] |
ComplexTextController.cpp | 238 // We break up glyph run generation for the string by FontData. 255 const SimpleFontData* fontData; 283 fontData = nextFontData; 302 nextFontData = fontData; 309 if (nextFontData != fontData || nextIsMissingGlyph != isMissingGlyph) { 312 collectComplexTextRunsForCharacters((isSmallCaps ? m_smallCapsBuffer.data() : cp) + itemStart, itemLength, itemStart, !isMissingGlyph ? fontData : 0); 454 if (fallbackFonts && complexTextRun.fontData() != m_font.primaryFont()) 455 fallbackFonts->add(complexTextRun.fontData()); 474 glyphBuffer->add(m_adjustedGlyphs[k], complexTextRun.fontData(), FloatSize(adjustedAdvance)); 520 const SimpleFontData* fontData = complexTextRun.fontData() [all...] |