HomeSort by relevance Sort by last modified time
    Searched refs:fontData (Results 1 - 25 of 75) sorted by null

1 2 3

  /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...]
ComplexTextController.h 77 static PassRefPtr<ComplexTextRun> create(CTRunRef ctRun, const SimpleFontData* fontData, const UChar* characters, unsigned stringLocation, size_t stringLength, CFRange runRange)
79 return adoptRef(new ComplexTextRun(ctRun, fontData, characters, stringLocation, stringLength, runRange));
82 static PassRefPtr<ComplexTextRun> create(const SimpleFontData* fontData, const UChar* characters, unsigned stringLocation, size_t stringLength, bool ltr)
84 return adoptRef(new ComplexTextRun(fontData, characters, stringLocation, stringLength, ltr));
88 const SimpleFontData* fontData() const { return m_fontData; }
  /external/chromium_org/third_party/WebKit/Source/core/platform/graphics/
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...]
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...]
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...]
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...]
SegmentedFontData.cpp 45 return it->fontData().get();
47 return m_ranges[0].fontData().get();
81 if (it->fontData()->isLoading())
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...]
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...]
  /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/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/skia/
GlyphPageTreeNodeSkia.cpp 42 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData)
50 fontData->platformData().setupPaint(&paint);
71 setGlyphDataForIndex(offset + i, glyphs[i], glyphs[i] ? fontData : NULL);
  /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/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);
  /external/chromium_org/third_party/WebKit/Source/core/platform/graphics/opentype/
OpenTypeUtilities.h 55 bool getEOTHeader(SharedBuffer* fontData, EOTHeader& eotHeader, size_t& overlayDst, size_t& overlaySrc, size_t& overlayLength);
  /external/chromium_org/third_party/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/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) {

Completed in 647 milliseconds

1 2 3