/external/webkit/WebCore/platform/graphics/ |
D | GlyphPageTreeNode.cpp | 93 void GlyphPageTreeNode::pruneTreeCustomFontData(const FontData* fontData) in pruneTreeCustomFontData() argument 99 it->second->pruneCustomFontData(fontData); in pruneTreeCustomFontData() 103 pageZeroRoot->pruneCustomFontData(fontData); in pruneTreeCustomFontData() 106 void GlyphPageTreeNode::pruneTreeFontData(const SimpleFontData* fontData) in pruneTreeFontData() argument 111 it->second->pruneFontData(fontData); in pruneTreeFontData() 115 pageZeroRoot->pruneFontData(fontData); in pruneTreeFontData() 124 void GlyphPageTreeNode::initializePage(const FontData* fontData, unsigned pageNumber) in initializePage() argument 137 if (fontData) { in initializePage() 194 if (fontData->isSegmented()) { in initializePage() 197 … const SegmentedFontData* segmentedFontData = static_cast<const SegmentedFontData*>(fontData); in initializePage() [all …]
|
D | FontFallbackList.cpp | 71 const FontData* fontData = primaryFont(font); in determinePitch() local 72 if (!fontData->isSegmented()) in determinePitch() 73 m_pitch = static_cast<const SimpleFontData*>(fontData)->pitch(); in determinePitch() 75 … const SegmentedFontData* segmentedFontData = static_cast<const SegmentedFontData*>(fontData); in determinePitch() 78 m_pitch = segmentedFontData->rangeAt(0).fontData()->pitch(); in determinePitch() 114 const FontData* fontData = fontDataAt(font, realizedFontIndex); in fontDataForCharacters() local 115 while (fontData && !fontData->containsCharacters(characters, length)) in fontDataForCharacters() 116 fontData = fontDataAt(font, ++realizedFontIndex); in fontDataForCharacters() 118 if (!fontData) { in fontDataForCharacters() 120 fontData = fontCache()->getFontDataForCharacters(*font, characters, length); in fontDataForCharacters() [all …]
|
D | WidthIterator.cpp | 114 const SimpleFontData* fontData = glyphData.fontData; in advance() local 116 ASSERT(fontData); in advance() 124 width = fontData->widthForGlyph(glyph); in advance() 129 …if (width == fontData->m_spaceWidth && (fontData->m_treatAsFixedPitch || glyph == fontData->m_spac… in advance() 130 width = fontData->m_adjustedSpaceWidth; in advance() 190 glyphBuffer->add(glyph, fontData, (rtl ? oldWidth + lastRoundingWidth : width)); in advance()
|
D | FontFastPath.cpp | 74 if (data.fontData) in glyphDataForCharacter() 92 if (data.fontData) { in glyphDataForCharacter() 95 … const SimpleFontData* smallCapsFontData = data.fontData->smallCapsFontData(m_fontDescription); in glyphDataForCharacter() 103 if (data.fontData) in glyphDataForCharacter() 153 …const GlyphData& data = fallbackPage && fallbackPage->glyphDataForCharacter(c).fontData ? fallback… in glyphDataForCharacter() 156 page->setGlyphDataForCharacter(c, data.glyph, data.fontData); in glyphDataForCharacter() 164 page->setGlyphDataForCharacter(c, data.glyph, data.fontData); in glyphDataForCharacter() 275 const SimpleFontData* fontData = glyphBuffer.fontDataAt(0); in drawGlyphBuffer() local 284 if (nextFontData != fontData || nextOffset != offset) { in drawGlyphBuffer() 285 drawGlyphs(context, fontData, glyphBuffer, lastFrom, nextGlyph - lastFrom, startPoint); in drawGlyphBuffer() [all …]
|
D | GlyphPageTreeNode.h | 49 const SimpleFontData* fontData; member 79 m_glyphs[index].fontData = f; in setGlyphDataForIndex() 132 static GlyphPageTreeNode* getRootChild(const FontData* fontData, unsigned pageNumber) in getRootChild() argument 134 return getRoot(pageNumber)->getChild(fontData, pageNumber); in getRootChild()
|
D | SegmentedFontData.h | 37 FontDataRange(UChar32 from, UChar32 to, const SimpleFontData* fontData) in FontDataRange() 40 , m_fontData(fontData) in FontDataRange() 46 const SimpleFontData* fontData() const { return m_fontData; } in fontData() function
|
D | SegmentedFontData.cpp | 43 return it->fontData(); in fontDataForCharacter() 45 return m_ranges[0].fontData(); in fontDataForCharacter() 79 if (it->fontData()->isLoading()) in isLoading()
|
D | FontCache.cpp | 264 void FontCache::releaseFontData(const SimpleFontData* fontData) in releaseFontData() argument 267 ASSERT(!fontData->isCustomFont()); in releaseFontData() 269 FontDataCache::iterator it = gFontDataCache->find(fontData->platformData()); in releaseFontData() 273 gInactiveFontData->add(fontData); in releaseFontData() 293 const SimpleFontData* fontData = *it.get(); in purgeInactiveFontData() local 294 gFontDataCache->remove(fontData->platformData()); in purgeInactiveFontData() 295 delete fontData; in purgeInactiveFontData()
|
/external/webkit/WebCore/platform/graphics/chromium/ |
D | GlyphPageTreeNodeChromiumWin.cpp | 71 const SimpleFontData* fontData, in fillBMPGlyphs() argument 75 HGDIOBJ oldFont = SelectObject(dc, fontData->m_font.hfont()); in fillBMPGlyphs() 83 if (ChromiumBridge::ensureFontLoaded(fontData->m_font.hfont())) in fillBMPGlyphs() 84 return fillBMPGlyphs(offset, length, buffer, page, fontData, false); in fillBMPGlyphs() 146 const SimpleFontData* glyphFontData = fontData; in fillBMPGlyphs() 160 glyphFontData = fontData->zeroWidthFontData(); in fillBMPGlyphs() 168 glyphFontData = fontData->cjkWidthFontData(); in fillBMPGlyphs() 199 const SimpleFontData* fontData) in fillNonBMPGlyphs() argument 204 fontData->m_font.hfont(), in fillNonBMPGlyphs() 205 fontData->m_font.scriptCache(), in fillNonBMPGlyphs() [all …]
|
D | GlyphPageTreeNodeLinux.cpp | 43 …gned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) in fill() argument 51 fontData->platformData().setupPaint(&paint); in fill() 65 setGlyphDataForIndex(offset + i, glyphs[i], glyphs[i] ? fontData : NULL); in fill()
|
/external/webkit/WebCore/platform/graphics/win/ |
D | UniscribeController.cpp | 121 const SimpleFontData* fontData; in advance() local 122 const SimpleFontData* nextFontData = m_font.glyphDataForCharacter(*curr, false).fontData; in advance() 137 fontData = nextFontData; in advance() 143 nextFontData = m_font.glyphDataForCharacter(*curr, false, forceSmallCaps).fontData; in advance() 150 if (nextFontData != fontData || nextIsSmallCaps != isSmallCaps) { in advance() 154 …dPlace((isSmallCaps ? smallCapsBuffer.data() : cp) + itemStart, itemLength, fontData, glyphBuffer); in advance() 169 …zeShapeAndPlace(const UChar* cp, unsigned length, const SimpleFontData* fontData, GlyphBuffer* gly… in itemizeShapeAndPlace() argument 183 if (!shapeAndPlaceItem(cp, i, fontData, glyphBuffer)) in itemizeShapeAndPlace() 188 if (!shapeAndPlaceItem(cp, i, fontData, glyphBuffer)) in itemizeShapeAndPlace() 206 …r::shapeAndPlaceItem(const UChar* cp, unsigned i, const SimpleFontData* fontData, GlyphBuffer* gly… in shapeAndPlaceItem() argument [all …]
|
D | GlyphPageTreeNodeCGWin.cpp | 37 …gned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) in fill() argument 46 wkGetGlyphs(fontData->platformData().cgFont(), buffer, localGlyphBuffer, bufferLength); in fill() 52 setGlyphDataForIndex(offset + i, glyph, fontData); in fill()
|
D | OpenTypeUtilities.cpp | 168 bool getEOTHeader(SharedBuffer* fontData, Vector<UInt8, 512>& eotHeader, size_t& overlayDst, size_t… in getEOTHeader() argument 174 size_t dataLength = fontData->size(); in getEOTHeader() 175 const char* data = fontData->data(); in getEOTHeader() 316 prefix->eotSize = eotHeader.size() + fontData->size(); in getEOTHeader() 321 HANDLE renameAndActivateFont(SharedBuffer* fontData, const String& fontName) in renameAndActivateFont() argument 323 size_t originalDataSize = fontData->size(); in renameAndActivateFont() 324 const sfntHeader* sfnt = reinterpret_cast<const sfntHeader*>(fontData->data()); in renameAndActivateFont() 339 Vector<char> rewrittenFontData(fontData->size() + nameTableSize); in renameAndActivateFont() 341 memcpy(data, fontData->data(), originalDataSize); in renameAndActivateFont()
|
D | GlyphPageTreeNodeCairoWin.cpp | 36 …gned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) in fill() argument 47 SelectObject(dc, fontData->platformData().hfont()); in fill() 61 setGlyphDataForIndex(offset + i, glyph, fontData); in fill()
|
/external/webkit/WebCore/css/ |
D | CSSSegmentedFontFace.cpp | 102 SegmentedFontData* fontData = m_fontDataTable.get(hashKey); in getFontData() local 103 if (fontData) in getFontData() 104 return fontData; in getFontData() 106 fontData = new SegmentedFontData(); in getFontData() 118 …fontData->appendRange(FontDataRange(0, 0x7FFFFFFF, static_cast<const SimpleFontData*>(faceFontData… in getFontData() 121 …fontData->appendRange(FontDataRange(ranges[j].from(), ranges[j].to(), static_cast<const SimpleFont… in getFontData() 125 if (fontData->numRanges()) in getFontData() 126 m_fontDataTable.set(hashKey, fontData); in getFontData() 128 delete fontData; in getFontData() 129 fontData = 0; in getFontData() [all …]
|
D | CSSFontFaceSource.cpp | 111 SimpleFontData* fontData = fontCache()->getCachedFontData(data); in getFontData() local 114 return fontData; in getFontData() 122 OwnPtr<SimpleFontData> fontData; in getFontData() local 157 …fontData.set(new SimpleFontData(m_font->platformDataFromCustomData(fontDescription.computedPixelSi… in getFontData() 166 …fontData.set(new SimpleFontData(m_font->platformDataFromCustomData(fontDescription.computedPixelSi… in getFontData() 173 …fontData.set(new SimpleFontData(FontPlatformData(fontDescription.computedPixelSize(), syntheticBol… in getFontData() 185 fontData.set(new SimpleFontData(*tempData, true, true)); in getFontData() 188 m_fontDataTable.set(hashKey, fontData.get()); in getFontData() 189 return fontData.release(); in getFontData()
|
/external/webkit/WebCore/platform/graphics/mac/ |
D | CoreTextController.cpp | 56 CoreTextController::CoreTextRun::CoreTextRun(CTRunRef ctRun, const SimpleFontData* fontData, const … in CoreTextRun() argument 58 , m_fontData(fontData) in CoreTextRun() 75 CoreTextController::CoreTextRun::CoreTextRun(const SimpleFontData* fontData, const UChar* character… in CoreTextRun() argument 76 : m_fontData(fontData) in CoreTextRun() 229 …TextRunsForCharacters(&hyphen, 1, m_end - 1, m_font.glyphDataForCharacter(hyphen, false).fontData); in collectCoreTextRuns() 289 …if (nextGlyphData.fontData != glyphData.fontData || nextIsSmallCaps != isSmallCaps || !nextGlyphDa… in collectCoreTextRuns() 292 …sBuffer.data() : cp) + itemStart, itemLength, itemStart, glyphData.glyph ? glyphData.fontData : 0); in collectCoreTextRuns() 300 …data() : cp) + itemStart, itemLength, itemStart, nextGlyphData.glyph ? nextGlyphData.fontData : 0); in collectCoreTextRuns() 304 …TextRunsForCharacters(&hyphen, 1, m_end - 1, m_font.glyphDataForCharacter(hyphen, false).fontData); in collectCoreTextRuns() 335 glyphBuffer->add(m_adjustedGlyphs[k], coreTextRun.fontData(), adjustedAdvance); in advance() [all …]
|
D | GlyphPageTreeNodeMac.cpp | 38 …gned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) in fill() argument 44 … wkGetGlyphsForCharacters(fontData->platformData().cgFont(), buffer, glyphs.data(), bufferLength); in fill() 50 setGlyphDataForIndex(offset + i, glyphs[i], fontData); in fill() 64 wkConvertCharToGlyphs(fontData->m_styleGroup, buffer, bufferLength, &glyphVector); in fill() 80 setGlyphDataForIndex(offset + i, glyph, fontData); in fill()
|
D | FontMacATSUI.mm | 104 static void disableLigatures(const SimpleFontData* fontData) 109 if (fontData->platformData().allowsLigatures()) 114 OSStatus status = ATSUSetFontFeatures(fontData->m_ATSUStyle, 1, featureTypes, featureSelectors); 119 static void initializeATSUStyle(const SimpleFontData* fontData) 121 if (fontData->m_ATSUStyleInitialized) 124 ATSUFontID fontID = fontData->platformData().m_atsuFontID; 126 LOG_ERROR("unable to get ATSUFontID for %@", fontData->m_font.font()); 130 OSStatus status = ATSUCreateStyle(&fontData->m_ATSUStyle); 136 if (fontData->m_font.m_syntheticOblique) 138 Fixed fontSize = FloatToFixed(fontData->platformData().m_size); [all …]
|
/external/webkit/WebCore/platform/graphics/gtk/ |
D | GlyphPageTreeNodePango.cpp | 74 …gned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) in fill() argument 81 if (!fontData->m_font.m_font || fontData->m_font.m_font == reinterpret_cast<PangoFont*>(-1)) in fill() 86 …Glyph glyph = pango_font_get_glyph(fontData->m_font.m_font, fontData->m_font.m_context, buffer[i]); in fill() 90 setGlyphDataForIndex(offset + i, glyph, fontData); in fill()
|
D | GlyphPageTreeNodeGtk.cpp | 38 …gned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) in fill() argument 45 FT_Face face = cairo_ft_scaled_font_lock_face(fontData->m_font.m_scaledFont); in fill() 55 setGlyphDataForIndex(offset + i, glyph, fontData); in fill() 60 cairo_ft_scaled_font_unlock_face(fontData->m_font.m_scaledFont); in fill()
|
/external/webkit/WebCore/platform/graphics/qt/ |
D | FontFallbackListQt.cpp | 60 const FontData* fontData = primaryFont(font); in determinePitch() local 61 if (!fontData->isSegmented()) in determinePitch() 62 m_pitch = static_cast<const SimpleFontData*>(fontData)->pitch(); in determinePitch() 64 … const SegmentedFontData* segmentedFontData = static_cast<const SegmentedFontData*>(fontData); in determinePitch() 67 m_pitch = segmentedFontData->rangeAt(0).fontData()->pitch(); in determinePitch()
|
/external/webkit/WebCore/platform/graphics/android/ |
D | GlyphMapAndroid.cpp | 45 …gned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) in fill() argument 53 fontData->platformData().setupPaint(&paint); in fill() 76 setGlyphDataForIndex(offset + i, glyphID, fontData); in fill() 82 setGlyphDataForIndex(offset + i, glyphID, fontData); in fill()
|
/external/webkit/WebCore/platform/graphics/wx/ |
D | FontCacheWx.cpp | 44 SimpleFontData* fontData = 0; in getFontDataForCharacters() local 45 fontData = new SimpleFontData(FontPlatformData(font.fontDescription(), font.family().family())); in getFontDataForCharacters() 46 return fontData; in getFontDataForCharacters()
|
/external/webkit/WebCore/svg/ |
D | SVGFont.cpp | 210 …SVGFontData* svgFontAndFontFaceElementForFontData(const SimpleFontData* fontData, SVGFontFaceEleme… in svgFontAndFontFaceElementForFontData() argument 212 ASSERT(fontData->isCustomFont()); in svgFontAndFontFaceElementForFontData() 213 ASSERT(fontData->isSVGFont()); in svgFontAndFontFaceElementForFontData() 215 const SVGFontData* svgFontData = static_cast<const SVGFontData*>(fontData->svgFontData()); in svgFontAndFontFaceElementForFontData() 231 SVGTextRunWalker(const SVGFontData* fontData, SVGFontElement* fontElement, SVGTextRunData& data, in SVGTextRunWalker() 233 : m_fontData(fontData) in SVGTextRunWalker() 388 …if (const SVGFontData* fontData = svgFontAndFontFaceElementForFontData(font->primaryFont(), fontFa… in floatWidthOfSubStringUsingSVGFont() local 414 …SVGTextRunWalker<SVGTextRunWalkerMeasuredLengthData> runWalker(fontData, fontElement, data, floatW… in floatWidthOfSubStringUsingSVGFont() 464 …if (const SVGFontData* fontData = svgFontAndFontFaceElementForFontData(primaryFont(), fontFaceElem… in drawTextUsingSVGFont() local 504 glyphOrigin.setX(fontData->horizontalOriginX() * scale); in drawTextUsingSVGFont() [all …]
|