/external/sfntly/cpp/src/sfntly/data/ |
font_data.cc | 25 int32_t FontData::Size() const { 29 bool FontData::Bound(int32_t offset, int32_t length) { 38 bool FontData::Bound(int32_t offset) { 46 int32_t FontData::Length() const { 50 FontData::FontData(ByteArray* ba) { 54 FontData::FontData(FontData* data, int32_t offset, int32_t length) { 59 FontData::FontData(FontData* data, int32_t offset) [all...] |
font_data.h | 51 class FontData : virtual public RefCount { 53 // Gets the maximum size of the FontData. This is the maximum number of bytes 59 // Sets limits on the size of the FontData. The FontData is then only 66 // Sets limits on the size of the FontData. This is a offset bound only so if 67 // the FontData is writable and growable then there is no limit to that growth 70 // size of the FontData 74 // Makes a slice of this FontData. The returned slice will share the data with 75 // the original <code>FontData</code>. 78 // @return a slice of the original FontData [all...] |
writable_font_data.h | 59 // the FontData's range 69 // the FontData's range 88 // Writes padding to the FontData. The padding byte written is 0x00. 94 // Writes padding to the FontData. 105 // @throws IndexOutOfBoundsException if index is outside the FontData's range 112 // @throws IndexOutOfBoundsException if index is outside the FontData's range 119 // @throws IndexOutOfBoundsException if index is outside the FontData's range 126 // @throws IndexOutOfBoundsException if index is outside the FontData's range 133 // @throws IndexOutOfBoundsException if index is outside the FontData's range 140 // @throws IndexOutOfBoundsException if index is outside the FontData's rang [all...] |
readable_font_data.h | 48 class ReadableFontData : public FontData, 74 // @throws IndexOutOfBoundsException if index is outside the FontData's range 80 // @throws IndexOutOfBoundsException if index is outside the FontData's range 98 // @throws IndexOutOfBoundsException if index is outside the FontData's range 104 // @throws IndexOutOfBoundsException if index is outside the FontData's range 110 // @throws IndexOutOfBoundsException if index is outside the FontData's range 116 // @throws IndexOutOfBoundsException if index is outside the FontData's range 122 // @throws IndexOutOfBoundsException if index is outside the FontData's range 128 // @throws IndexOutOfBoundsException if index is outside the FontData's range 134 // @throws IndexOutOfBoundsException if index is outside the FontData's rang [all...] |
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/mac/ |
GlyphPageTreeNodeMac.cpp | 44 static bool shouldUseCoreText(UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) 46 if (fontData->platformData().isCompositeFontReference()) 48 if (fontData->platformData().widthVariant() != RegularWidth || fontData->hasVerticalGlyphs()) { 59 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) 64 if (!shouldUseCoreText(buffer, bufferLength, fontData)) { 65 CGFontGetGlyphsForUnichars(fontData->platformData().cgFont(), buffer, glyphs.data(), bufferLength); 70 setGlyphDataForIndex(offset + i, glyphs[i], fontData); 74 } else if (!fontData->platformData().isCompositeFontReference() && fontData->platformData().widthVariant() != RegularWidt [all...] |
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 | 171 return baseCharacterGlyphData.fontData; 176 for (const FontData* fontData = fontDataAt(0); fontData; fontData = fontDataAt(++i)) { 177 const SimpleFontData* simpleFontData = fontData->fontDataForCharacter(baseCharacter); 200 if (simpleFontData == baseCharacterGlyphData.fontData) 207 if (!triedBaseCharacterFontData && baseCharacterGlyphData.fontData && baseCharacterGlyphData.fontData->canRenderCombiningCharacterSequence(characters, length)) 208 return baseCharacterGlyphData.fontData; [all...] |
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/ |
GlyphPageTreeNode.cpp | 97 void GlyphPageTreeNode::pruneTreeCustomFontData(const FontData* fontData) 103 it->value->pruneCustomFontData(fontData); 107 pageZeroRoot->pruneCustomFontData(fontData); 110 void GlyphPageTreeNode::pruneTreeFontData(const SimpleFontData* fontData) 115 it->value->pruneFontData(fontData); 119 pageZeroRoot->pruneFontData(fontData); 122 static bool fill(GlyphPage* pageToFill, unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) 125 if (SimpleFontData::AdditionalFontData* additionalFontData = fontData->fontData()) [all...] |
FontFallbackList.cpp | 78 const FontData* fontData = primaryFontData(font); 79 if (!fontData->isSegmented()) 80 m_pitch = static_cast<const SimpleFontData*>(fontData)->pitch(); 82 const SegmentedFontData* segmentedFontData = static_cast<const SegmentedFontData*>(fontData); 85 m_pitch = segmentedFontData->rangeAt(0).fontData()->pitch(); 91 const FontData* FontFallbackList::primaryFontData(const Font* f) const 94 const FontData* fontData = fontDataAt(f, fontIndex); 95 if (!fontData) { [all...] |
FontData.h | 40 class FontData : public RefCounted<FontData> { 41 WTF_MAKE_NONCOPYABLE(FontData); WTF_MAKE_FAST_ALLOCATED; 43 FontData() 48 virtual ~FontData();
|
WidthIterator.cpp | 103 static inline float applyFontTransforms(GlyphBuffer* glyphBuffer, bool ltr, int& lastGlyphCount, const SimpleFontData* fontData, TypesettingFeatures typesettingFeatures, CharactersTreatedAsSpace& charactersTreatedAsSpace) 122 fontData->applyTransforms(glyphBuffer->glyphs(lastGlyphCount), advances + lastGlyphCount, glyphBufferSize - lastGlyphCount, typesettingFeatures); 167 const SimpleFontData* fontData = glyphData.fontData; 169 ASSERT(fontData); 174 width = m_font->tabWidth(*fontData, m_run.tabSize(), m_run.xPos() + m_runWidthSoFar + widthSinceLastRounding); 176 width = fontData->widthForGlyph(glyph); 185 if (m_run.applyWordRounding() && width == fontData->spaceWidth() && (fontData->pitch() == FixedPitch || glyph == fontData->spaceGlyph()) [all...] |
FontData.cpp | 27 #include "core/platform/graphics/FontData.h" 31 FontData::~FontData()
|
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...] |
SegmentedFontData.h | 29 #include "core/platform/graphics/FontData.h" 37 FontDataRange(UChar32 from, UChar32 to, PassRefPtr<SimpleFontData> fontData) 40 , m_fontData(fontData) 46 PassRefPtr<SimpleFontData> fontData() const { return m_fontData; } 54 class SegmentedFontData : public FontData {
|
GlyphPage.h | 50 , fontData(f) 54 const SimpleFontData* fontData; 78 static PassRefPtr<GlyphPage> createForSingleFontData(GlyphPageTreeNode* owner, const SimpleFontData* fontData) 80 ASSERT(fontData); 81 return adoptRef(new GlyphPage(owner, fontData)); 136 void setGlyphDataForIndex(unsigned index, Glyph glyph, const SimpleFontData* fontData) 143 m_perGlyphFontData[index] = glyph ? fontData : 0; 148 ASSERT(!glyph || fontData == m_fontDataForAllGlyphs); 153 setGlyphDataForIndex(index, glyphData.glyph, glyphData.fontData); 156 void removeFontDataFromSystemFallbackPage(const SimpleFontData* fontData) [all...] |
FontFastPath.cpp | 132 RefPtr<SimpleFontData> uprightFontData = data.fontData->uprightOrientationFontData(); 142 if (uprightData.fontData) 146 RefPtr<SimpleFontData> verticalRightFontData = data.fontData->verticalRightOrientationFontData(); 156 if (verticalRightData.fontData) 200 if (data.fontData && (data.fontData->platformData().orientation() == Horizontal || data.fontData->isTextOrientationFallback())) 203 if (data.fontData) { 205 if (!data.fontData->hasVerticalGlyphs()) { 234 if (data.fontData) { [all...] |
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/ |
SVGTextRunRenderingContext.cpp | 41 static inline const SVGFontData* svgFontAndFontFaceElementForFontData(const SimpleFontData* fontData, SVGFontFaceElement*& fontFace, SVGFontElement*& font) 43 ASSERT(fontData); 44 ASSERT(fontData->isCustomFont()); 45 ASSERT(fontData->isSVGFont()); 47 const SVGFontData* svgFontData = static_cast<const SVGFontData*>(fontData->fontData()); 85 void SVGTextRunRenderingContext::drawSVGGlyphs(GraphicsContext* context, const TextRun& run, const SimpleFontData* fontData, const GlyphBuffer& glyphBuffer, int from, int numGlyphs, const FloatPoint& point) const 90 const SVGFontData* svgFontData = svgFontAndFontFaceElementForFontData(fontData, fontFaceElement, fontElement); 115 float scale = scaleEmToUnits(fontData->platformData().size(), fontFaceElement->unitsPerEm()); 182 if (glyphData.glyph == missingGlyphData.glyph && glyphData.fontData == missingGlyphData.fontData) [all...] |
SVGTextLayoutEngineSpacing.cpp | 47 const SimpleFontData* fontData = m_font.primaryFont(); 48 if (!fontData->isSVGFont()) { 53 ASSERT(fontData->isCustomFont()); 54 ASSERT(fontData->isSVGFont()); 56 const SVGFontData* svgFontData = static_cast<const SVGFontData*>(fontData->fontData());
|
/external/chromium_org/third_party/WebKit/Source/core/svg/ |
SVGFontData.cpp | 57 void SVGFontData::initializeFontData(SimpleFontData* fontData, float fontSize) 59 ASSERT(fontData); 67 missingGlyphData.fontData = fontData; 69 fontData->setMissingGlyphData(missingGlyphData); 71 fontData->setZeroWidthSpaceGlyph(0); 72 fontData->determinePitch(); 81 GlyphPage* glyphPageZero = GlyphPageTreeNode::getRootChild(fontData, 0)->page(); 86 xHeight = letterXGlyph ? fontData->widthForGlyph(letterXGlyph) : 2 * ascent / 3; 89 FontMetrics& fontMetrics = fontData->fontMetrics() [all...] |
/external/chromium_org/third_party/WebKit/Source/core/css/ |
CSSFontFaceSource.cpp | 119 RefPtr<SimpleFontData> fontData = fontCache()->getFontResourceData(fontDescription, m_string, true); 120 m_histograms.recordLocalFont(fontData); 121 return fontData; 124 // See if we have a mapping in our FontData cache. 128 RefPtr<SimpleFontData>& fontData = m_fontDataTable.add(hashKey, 0).iterator->value; 129 if (fontData) 130 return fontData; // No release, because fontData is a reference to a RefPtr that is held in the m_fontDataTable. 169 fontData = SimpleFontData::create(SVGFontData::create(fontFaceElement), fontDescription.computedPixelSize(), syntheticBold, syntheticItalic); 178 fontData = SimpleFontData::create(m_font->platformDataFromCustomData(fontDescription.computedPixelSize(), s (…) [all...] |
CSSSegmentedFontFace.cpp | 111 PassRefPtr<FontData> CSSSegmentedFontFace::getFontData(const FontDescription& fontDescription) 122 RefPtr<SegmentedFontData>& fontData = m_fontDataTable.add(hashKey, 0).iterator->value; 123 if (fontData && fontData->numRanges()) 124 return fontData; // No release, we have a reference to an object in the cache which should retain the ref count it has. 126 if (!fontData) 127 fontData = SegmentedFontData::create(); 138 appendFontDataWithInvalidUnicodeRangeIfLoading(fontData.get(), faceFontData.release(), m_fontFaces[i]->ranges()); 141 if (fontData->numRanges()) 142 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/core/platform/graphics/chromium/ |
GlyphPageTreeNodeChromiumWin.cpp | 84 const SimpleFontData* fontData) 87 HGDIOBJ oldFont = SelectObject(dc, fontData->platformData().hfont()); 91 if (FontPlatformData::ensureFontLoaded(fontData->platformData().hfont())) { 142 if (!getGlyphIndices(fontData->platformData().hfont(), dc, buffer, length, localGlyphBuffer, GGI_MARK_NONEXISTING_GLYPHS)) { 161 const SimpleFontData* glyphFontData = fontData; 170 initSpaceGlyph(fontData->platformData().hfont(), dc, &spaceGlyph); 175 // WebKit expects both the glyph index and FontData 208 const SimpleFontData* fontData) 213 fontData->platformData().hfont(), 214 fontData->platformData().scriptCache() [all...] |
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/harfbuzz/ |
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();
|
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_bool_t harfBuzzGetGlyphExtents(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_glyph_extents_t* extents, void* userData) 122 HarfBuzzFontData* hbFontData = reinterpret_cast<HarfBuzzFontData*>(fontData);
|
/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);
|