/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/webkit/Source/WebCore/css/ |
CSSSegmentedFontFace.cpp | 85 FontData* CSSSegmentedFontFace::getFontData(const FontDescription& fontDescription) 93 SegmentedFontData* fontData = m_fontDataTable.get(hashKey); 94 if (fontData) 95 return fontData; 97 fontData = new SegmentedFontData(); 111 fontData->appendRange(FontDataRange(0, 0x7FFFFFFF, faceFontData)); 114 fontData->appendRange(FontDataRange(ranges[j].from(), ranges[j].to(), faceFontData)); 118 if (fontData->numRanges()) 119 m_fontDataTable.set(hashKey, fontData); 121 delete fontData; [all...] |
CSSFontFaceSource.cpp | 111 SimpleFontData* fontData = fontCache()->getCachedFontData(fontDescription, m_string); 114 return fontData; 117 // See if we have a mapping in our FontData cache. 123 OwnPtr<SimpleFontData> fontData; 157 fontData.set(new SimpleFontData(adoptPtr(new SVGFontData(fontFaceElement)), fontDescription.computedPixelSize(), syntheticBold, syntheticItalic)); 166 fontData.set(new SimpleFontData(m_font->platformDataFromCustomData(fontDescription.computedPixelSize(), syntheticBold, syntheticItalic, fontDescription.orientation(), 173 fontData.set(new SimpleFontData(adoptPtr(new SVGFontData(m_svgFontFaceElement.get())), fontDescription.computedPixelSize(), syntheticBold, syntheticItalic)); 185 fontData.set(new SimpleFontData(tempData->platformData(), true, true)); 188 SimpleFontData* fontDataRawPtr = fontData.leakPtr();
|
/external/webkit/Source/WebCore/platform/graphics/ |
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...] |
GlyphPageTreeNode.cpp | 89 HashMap<const FontData*, GlyphPageTreeNode*>::const_iterator end = m_children.end(); 90 for (HashMap<const FontData*, GlyphPageTreeNode*>::const_iterator it = m_children.begin(); it != end; ++it) 96 void GlyphPageTreeNode::pruneTreeCustomFontData(const FontData* fontData) 102 it->second->pruneCustomFontData(fontData); 106 pageZeroRoot->pruneCustomFontData(fontData); 109 void GlyphPageTreeNode::pruneTreeFontData(const SimpleFontData* fontData) 114 it->second->pruneFontData(fontData); 118 pageZeroRoot->pruneFontData(fontData); 127 static bool fill(GlyphPage* pageToFill, unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) [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...] |
ComplexTextController.h | 72 static PassRefPtr<ComplexTextRun> create(CTRunRef ctRun, const SimpleFontData* fontData, const UChar* characters, unsigned stringLocation, size_t stringLength, CFRange runRange) 74 return adoptRef(new ComplexTextRun(ctRun, fontData, characters, stringLocation, stringLength, runRange)); 78 static PassRefPtr<ComplexTextRun> create(ATSUTextLayout atsuTextLayout, const SimpleFontData* fontData, const UChar* characters, unsigned stringLocation, size_t stringLength, bool ltr, bool directionalOverride) 80 return adoptRef(new ComplexTextRun(atsuTextLayout, fontData, characters, stringLocation, stringLength, ltr, directionalOverride)); 83 static PassRefPtr<ComplexTextRun> create(const SimpleFontData* fontData, const UChar* characters, unsigned stringLocation, size_t stringLength, bool ltr) 85 return adoptRef(new ComplexTextRun(fontData, characters, stringLocation, stringLength, ltr)); 89 const SimpleFontData* fontData() const { return m_fontData; }
|
/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/ |
GlyphMapAndroid.cpp | 42 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) 50 fontData->platformData().setupPaint(&paint); 73 setGlyphDataForIndex(offset + i, glyphID, fontData); 79 setGlyphDataForIndex(offset + i, glyphID, fontData);
|
/external/webkit/Source/WebCore/platform/graphics/opentype/ |
OpenTypeUtilities.cpp | 194 bool getEOTHeader(SharedBuffer* fontData, EOTHeader& eotHeader, size_t& overlayDst, size_t& overlaySrc, size_t& overlayLength) 200 size_t dataLength = fontData->size(); 201 const char* data = fontData->data(); 338 eotHeader.updateEOTSize(fontData->size()); 344 // adds fontName to the font table in fontData, and writes the new font table to rewrittenFontTable 346 static size_t renameFontInternal(SharedBuffer* fontData, const String& fontName, Vector<char> &rewrittenFontData) 348 size_t originalDataSize = fontData->size(); 349 const sfntHeader* sfnt = reinterpret_cast<const sfntHeader*>(fontData->data()); 364 rewrittenFontData.resize(fontData->size() + nameTableSize); 366 memcpy(data, fontData->data(), originalDataSize) [all...] |