HomeSort by relevance Sort by last modified time
    Searched full:fontdata (Results 1 - 25 of 117) sorted by null

1 2 3 4 5

  /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...]
FontData.h 38 class FontData {
39 WTF_MAKE_NONCOPYABLE(FontData); WTF_MAKE_FAST_ALLOCATED;
41 FontData()
46 virtual ~FontData();
FontData.cpp 27 #include "FontData.h"
31 FontData::~FontData()
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...]
GlyphPageTreeNode.h 45 class FontData;
56 , fontData(f)
60 const SimpleFontData* fontData;
116 setGlyphDataForIndex(index, glyphData.glyph, glyphData.fontData);
149 // The glyph page tree is a data structure that maps (FontData, glyph page number)
155 // Each root node maps a FontData pointer to another GlyphPageTreeNode at
163 // A NULL FontData pointer corresponds to the system fallback
188 static GlyphPageTreeNode* getRootChild(const FontData* fontData, unsigned pageNumber)
190 return getRoot(pageNumber)->getChild(fontData, pageNumber)
    [all...]
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.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 {
FontFallbackList.h 66 const FontData* primaryFontData(const Font* f) const { return fontDataAt(f, 0); }
67 const FontData* fontDataAt(const Font*, unsigned index) const;
73 mutable Vector<pair<const FontData*, bool>, 1> m_fontList;
  /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();
  /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/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/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;
  /external/webkit/Source/WebCore/platform/graphics/win/
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/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/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/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/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/skia/src/sfnt/
SkOTUtils.cpp 36 SkData* SkOTUtils::RenameFont(SkStream* fontData, const char* fontName, int fontNameLen) {
40 if (fontData->read(&sfntHeader, sizeof(sfntHeader)) < sizeof(sfntHeader)) {
49 if (fontData->read(&tableEntry, sizeof(tableEntry)) < sizeof(tableEntry)) {
60 if (!fontData->rewind()) {
83 size_t originalDataSize = fontData->getLength() - oldNameTablePhysicalSize;
89 if (fontData->read(data, oldNameTableOffset) < oldNameTableOffset) {
92 if (fontData->skip(oldNameTablePhysicalSize) < oldNameTablePhysicalSize) {
95 if (fontData->read(data + oldNameTableOffset, originalDataSize - oldNameTableOffset) < originalDataSize - oldNameTableOffset) {
  /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);
  /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...]

Completed in 251 milliseconds

1 2 3 4 5