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

1 2 3 4 5

  /external/chromium_org/third_party/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/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/platform/fonts/
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 {
86 inline SegmentedFontData* toSegmentedFontData(FontData* fontData)
88 ASSERT_WITH_SECURITY_IMPLICATION(!fontData || fontData->isSegmented());
89 return static_cast<SegmentedFontData*>(fontData);
    [all...]
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();
109 const FontData* FontFallbackList::primaryFontData(const FontDescription& fontDescription) const
112 const FontData* fontData = fontDataAt(fontDescription, fontIndex);
113 if (!fontData) {
    [all...]
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...]
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...]
WidthIterator.cpp 99 static inline float applyFontTransforms(GlyphBuffer* glyphBuffer, bool ltr, unsigned& lastGlyphCount, const SimpleFontData* fontData, TypesettingFeatures typesettingFeatures, CharactersTreatedAsSpace& charactersTreatedAsSpace)
118 fontData->applyTransforms(glyphBuffer->glyphs(lastGlyphCount), advances + lastGlyphCount, glyphBufferSize - lastGlyphCount, typesettingFeatures);
163 const SimpleFontData* fontData = glyphData.fontData;
165 ASSERT(fontData);
170 width = m_font->tabWidth(*fontData, m_run.tabSize(), m_run.xPos() + m_runWidthSoFar + widthSinceLastRounding);
172 width = fontData->widthForGlyph(glyph);
181 if (m_run.applyWordRounding() && width == fontData->spaceWidth() && (fontData->pitch() == FixedPitch || glyph == fontData->spaceGlyph())
    [all...]
FontData.cpp 27 #include "platform/fonts/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...]
FontData.h 41 class PLATFORM_EXPORT FontData : public RefCounted<FontData> {
42 WTF_MAKE_NONCOPYABLE(FontData); WTF_MAKE_FAST_ALLOCATED;
44 FontData()
49 virtual ~FontData();
GlyphPage.h 51 , fontData(f)
55 const SimpleFontData* fontData;
79 static PassRefPtr<GlyphPage> createForSingleFontData(GlyphPageTreeNode* owner, const SimpleFontData* fontData)
81 ASSERT(fontData);
82 return adoptRef(new GlyphPage(owner, fontData));
142 void setGlyphDataForIndex(unsigned index, Glyph glyph, const SimpleFontData* fontData)
149 m_perGlyphFontData[index] = glyph ? fontData : 0;
154 ASSERT(!glyph || fontData == m_fontDataForAllGlyphs);
159 setGlyphDataForIndex(index, glyphData.glyph, glyphData.fontData);
162 void removeFontDataFromSystemFallbackPage(const SimpleFontData* fontData)
    [all...]
FontFastPath.cpp 133 RefPtr<SimpleFontData> uprightFontData = data.fontData->uprightOrientationFontData();
143 if (uprightData.fontData)
147 RefPtr<SimpleFontData> verticalRightFontData = data.fontData->verticalRightOrientationFontData();
157 if (verticalRightData.fontData)
201 if (data.fontData && (data.fontData->platformData().orientation() == Horizontal || data.fontData->isTextOrientationFallback()))
204 if (data.fontData) {
206 if (!data.fontData->hasVerticalGlyphs()) {
235 if (data.fontData) {
    [all...]
  /external/chromium_org/third_party/WebKit/Source/platform/fonts/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...]
  /external/chromium_org/third_party/WebKit/Source/core/svg/
SVGFontData.cpp 59 void SVGFontData::initializeFontData(SimpleFontData* fontData, float fontSize)
61 ASSERT(fontData);
69 missingGlyphData.fontData = fontData;
71 fontData->setMissingGlyphData(missingGlyphData);
73 fontData->setZeroWidthSpaceGlyph(0);
74 fontData->determinePitch();
83 GlyphPage* glyphPageZero = GlyphPageTreeNode::getRootChild(fontData, 0)->page();
88 xHeight = letterXGlyph ? fontData->widthForGlyph(letterXGlyph) : 2 * ascent / 3;
91 FontMetrics& fontMetrics = fontData->fontMetrics()
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
SVGTextRunRenderingContext.cpp 40 static inline const SVGFontData* svgFontAndFontFaceElementForFontData(const SimpleFontData* fontData, SVGFontFaceElement*& fontFace, SVGFontElement*& font)
42 ASSERT(fontData);
43 ASSERT(fontData->isCustomFont());
44 ASSERT(fontData->isSVGFont());
46 RefPtr<CustomFontData> customFontData = fontData->customFontData();
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...]
  /external/chromium_org/third_party/WebKit/Source/core/css/
CSSFontFaceSource.cpp 72 SimpleFontData* fontData = it->value.get();
73 if (fontData && fontData->customFontData())
74 fontData->customFontData()->clearCSSFontFaceSource();
138 RefPtr<SimpleFontData> fontData = FontCache::fontCache()->getFontData(fontDescription, m_string, true);
139 m_histograms.recordLocalFont(fontData);
140 return fontData;
143 // See if we have a mapping in our FontData cache.
147 RefPtr<SimpleFontData>& fontData = m_fontDataTable.add(key.hash(), 0).iterator->value;
148 if (fontData)
    [all...]
CSSSegmentedFontFace.cpp 118 PassRefPtr<FontData> CSSSegmentedFontFace::getFontData(const FontDescription& fontDescription)
127 RefPtr<SegmentedFontData>& fontData = m_fontDataTable.add(key.hash(), 0).iterator->value;
128 if (fontData && fontData->numRanges())
129 return fontData; // No release, we have a reference to an object in the cache which should retain the ref count it has.
131 if (!fontData)
132 fontData = SegmentedFontData::create();
150 appendFontData(fontData.get(), faceFontData.release(), m_fontFaces[i]->ranges());
153 if (fontData->numRanges())
154 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/android/
FontCacheAndroidTest.cpp 25 RefPtr<SimpleFontData> fontData = fontCache->platformFallbackForCharacter(fontDescription, testChar, 0);
26 EXPECT_TRUE(fontData);

Completed in 358 milliseconds

1 2 3 4 5