HomeSort by relevance Sort by last modified time
    Searched refs:GlyphBuffer (Results 1 - 19 of 19) sorted by null

  /external/chromium_org/third_party/WebKit/Source/platform/fonts/
WidthIterator.h 36 class GlyphBuffer;
46 unsigned advance(int to, GlyphBuffer* = 0);
85 float adjustSpacing(float, const CharacterData&, const SimpleFontData&, GlyphBuffer*);
89 unsigned advanceInternal(TextIterator&, GlyphBuffer*);
GlyphBufferTest.cpp 6 #include "platform/fonts/GlyphBuffer.h"
37 GlyphBuffer glyphBuffer;
38 EXPECT_TRUE(glyphBuffer.isEmpty());
39 EXPECT_EQ(0u, glyphBuffer.size());
47 GlyphBuffer glyphBuffer;
48 glyphBuffer.add(42, font1.get(), 10);
49 glyphBuffer.add(43, font1.get(), 15);
50 glyphBuffer.add(44, font2.get(), FloatSize(12, 2))
    [all...]
GlyphBuffer.h 42 class GlyphBuffer {
45 GlyphBuffer() : m_hasVerticalAdvances(false) { }
Font.h 56 class GlyphBuffer;
145 float getGlyphsAndAdvancesForSimpleText(const TextRunPaintInfo&, GlyphBuffer&, ForTextEmphasisOrNot = NotForTextEmphasis) const;
148 void drawGlyphs(GraphicsContext*, const SimpleFontData*, const GlyphBuffer&, unsigned from, unsigned numGlyphs, const FloatPoint&, const FloatRect& textRect) const;
149 float drawGlyphBuffer(GraphicsContext*, const TextRunPaintInfo&, const GlyphBuffer&, const FloatPoint&) const;
150 void drawEmphasisMarks(GraphicsContext*, const TextRunPaintInfo&, const GlyphBuffer&, const AtomicString&, const FloatPoint&) const;
158 float getGlyphsAndAdvancesForComplexText(const TextRunPaintInfo&, GlyphBuffer&, ForTextEmphasisOrNot = NotForTextEmphasis) const;
166 PassTextBlobPtr buildTextBlob(const GlyphBuffer&, float initialAdvance, const FloatRect& bounds, float& advance, bool couldUseLCD) const;
WidthIterator.cpp 29 #include "platform/fonts/GlyphBuffer.h"
113 const SimpleFontData& fontData, GlyphBuffer* glyphBuffer)
129 if (glyphBuffer) {
130 if (glyphBuffer->isEmpty()) {
132 glyphBuffer->add(fontData.zeroWidthSpaceGlyph(), &fontData, m_expansionPerOpportunity);
134 glyphBuffer->add(fontData.spaceGlyph(), &fontData, expansionAtThisOpportunity);
136 glyphBuffer->expandLastAdvance(expansionAtThisOpportunity);
178 unsigned WidthIterator::advanceInternal(TextIterator& textIterator, GlyphBuffer* glyphBuffer)
    [all...]
Font.cpp 33 #include "platform/fonts/GlyphBuffer.h"
228 GlyphBuffer glyphBuffer;
229 float initialAdvance = getGlyphsAndAdvancesForSimpleText(runInfo, glyphBuffer);
230 ASSERT(!glyphBuffer.hasVerticalAdvances());
232 if (glyphBuffer.isEmpty())
239 return buildTextBlob(glyphBuffer, initialAdvance, blobBounds, ignoredWidth, couldUseLCDRenderedText);
670 float Font::getGlyphsAndAdvancesForSimpleText(const TextRunPaintInfo& runInfo, GlyphBuffer& glyphBuffer, ForTextEmphasisOrNot forTextEmphasis) const
677 it.advance(runInfo.to, &glyphBuffer);
    [all...]
  /external/chromium_org/third_party/WebKit/Source/platform/fonts/harfbuzz/
HarfBuzzShaper.h 49 class GlyphBuffer;
62 bool shape(GlyphBuffer* = 0);
132 bool fillGlyphBuffer(GlyphBuffer*);
133 void fillGlyphBufferFromHarfBuzzRun(GlyphBuffer*, HarfBuzzRun*, FloatPoint& firstOffsetOfNextRun);
134 void fillGlyphBufferForTextEmphasis(GlyphBuffer*, HarfBuzzRun* currentRun);
FontHarfBuzz.cpp 38 #include "platform/fonts/GlyphBuffer.h"
122 const GlyphBuffer& glyphBuffer, unsigned from, unsigned numGlyphs,
148 const Glyph* glyphs = glyphBuffer.glyphs(from + glyphIndex);
160 currentWidth += glyphBuffer.advanceAt(from + glyphIndex).width();
170 if (!glyphBuffer.hasVerticalAdvances()) {
173 const FloatSize* adv = glyphBuffer.advances(from);
178 const Glyph* glyphs = glyphBuffer.glyphs(from);
185 // GlyphBuffer has no advances other than the defaults. In that case the
191 const FloatSize* adv = glyphBuffer.advances(from)
    [all...]
HarfBuzzShaper.cpp 40 #include "platform/fonts/GlyphBuffer.h"
558 bool HarfBuzzShaper::shape(GlyphBuffer* glyphBuffer)
571 && glyphBuffer && !fillGlyphBuffer(glyphBuffer))
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
SVGTextRunRenderingContext.h 43 virtual void drawSVGGlyphs(GraphicsContext*, const TextRun&, const SimpleFontData*, const GlyphBuffer&, int from, int to, const FloatPoint&) const OVERRIDE;
47 virtual void drawSVGGlyphs(GraphicsContext*, const TextRun&, const SimpleFontData*, const GlyphBuffer&, int from, int to, const FloatPoint&) const OVERRIDE { }
SVGTextRunRenderingContext.cpp 34 #include "platform/fonts/GlyphBuffer.h"
76 GlyphBuffer glyphBuffer;
77 charsConsumed += it.advance(run.length(), &glyphBuffer);
78 glyphId = !glyphBuffer.isEmpty() ? glyphBuffer.glyphAt(0) : 0;
82 void SVGTextRunRenderingContext::drawSVGGlyphs(GraphicsContext* context, const TextRun& run, const SimpleFontData* fontData, const GlyphBuffer& glyphBuffer, int from, int numGlyphs, const FloatPoint& point) const
112 Glyph glyph = glyphBuffer.glyphAt(from + i);
116 float advance = glyphBuffer.advanceAt(from + i).width()
    [all...]
SVGTextMetricsBuilder.cpp 28 #include "platform/fonts/GlyphBuffer.h"
118 GlyphBuffer glyphBuffer;
119 unsigned metricsLength = m_simpleWidthIterator->advance(textPosition + 1, &glyphBuffer);
126 Glyph glyphId = glyphBuffer.glyphAt(0);
  /external/chromium_org/third_party/WebKit/Source/platform/fonts/mac/
FontComplexTextMac.cpp 30 #include "platform/fonts/GlyphBuffer.h"
70 float Font::getGlyphsAndAdvancesForComplexText(const TextRunPaintInfo& runInfo, GlyphBuffer& glyphBuffer, ForTextEmphasisOrNot forTextEmphasis) const
77 controller.advance(runInfo.to, &glyphBuffer);
79 if (glyphBuffer.isEmpty())
86 glyphBuffer.reverse();
96 GlyphBuffer glyphBuffer;
99 if (shaper.shape(&glyphBuffer)) {
100 return drawGlyphBuffer(context, runInfo, glyphBuffer, point)
    [all...]
ComplexTextController.h 45 class GlyphBuffer;
58 void advance(unsigned to, GlyphBuffer* = 0, GlyphIterationStyle = IncludePartialGlyphs, HashSet<const SimpleFontData*>* fallbackFonts = 0);
FontMac.cpp 37 #include "platform/fonts/GlyphBuffer.h"
78 const GlyphBuffer& glyphBuffer, unsigned from, unsigned numGlyphs,
104 const Glyph* glyphs = glyphBuffer.glyphs(from);
115 // GlyphBuffer has no advances other than the defaults. In that case the
119 const FloatSize* adv = glyphBuffer.advances(from);
175 PassTextBlobPtr Font::buildTextBlob(const GlyphBuffer& glyphBuffer, float initialAdvance,
ComplexTextController.cpp 30 #include "platform/fonts/GlyphBuffer.h"
411 void ComplexTextController::advance(unsigned offset, GlyphBuffer* glyphBuffer, GlyphIterationStyle iterationStyle, HashSet<const SimpleFontData*>* fallbackFonts)
455 if (glyphBuffer && !m_characterInCurrentGlyph)
456 glyphBuffer->add(m_adjustedGlyphs[k], complexTextRun.fontData(), FloatSize(adjustedAdvance));
  /external/chromium_org/third_party/WebKit/Source/platform/text/
TextRun.h 40 class GlyphBuffer;
217 virtual void drawSVGGlyphs(GraphicsContext*, const TextRun&, const SimpleFontData*, const GlyphBuffer&, int from, int to, const FloatPoint&) const = 0;
  /external/chromium_org/third_party/WebKit/Source/core/rendering/
InlineTextBox.cpp 52 #include "platform/fonts/GlyphBuffer.h"
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/inspector/
InspectorCSSAgent.cpp 70 #include "platform/fonts/GlyphBuffer.h"
756 GlyphBuffer glyphBuffer;
757 it.advance(run.length(), &glyphBuffer);
758 for (unsigned i = 0; i < glyphBuffer.size(); ++i) {
759 String familyName = glyphBuffer.fontDataAt(i)->platformData().fontFamilyName();
    [all...]

Completed in 689 milliseconds