Home
last modified time | relevance | path

Searched refs:SkGlyphID (Results 1 – 25 of 172) sorted by relevance

1234567

/external/skia/src/pdf/
DSkPDFGlyphUse.h12 SkPDFGlyphUse(SkGlyphID firstNonZero, SkGlyphID lastGlyph) in SkPDFGlyphUse()
20 SkGlyphID firstNonZero() const { return fFirstNonZero; } in firstNonZero()
21 SkGlyphID lastGlyph() const { return fLastGlyph; } in lastGlyph()
22 void set(SkGlyphID gid) { fBitSet.set(this->toCode(gid)); } in set()
23 bool has(SkGlyphID gid) const { return fBitSet.test(this->toCode(gid)); } in has()
36 SkGlyphID fFirstNonZero = 0;
37 SkGlyphID fLastGlyph = 0;
39 uint16_t toCode(SkGlyphID gid) const { in toCode()
DSkPDFFont.h61 bool hasGlyph(SkGlyphID gid) { in hasGlyph()
66 SkGlyphID glyphToPDFFontEncoding(SkGlyphID gid) const { in glyphToPDFFontEncoding()
75 void noteGlyphUsage(SkGlyphID glyph) { in noteGlyphUsage()
117 SkGlyphID firstGlyphID() const { return fGlyphUsage.firstNonZero(); } in firstGlyphID()
118 SkGlyphID lastGlyphID() const { return fGlyphUsage.lastGlyph(); } in lastGlyphID()
129 SkGlyphID firstGlyphID,
130 SkGlyphID lastGlyphID,
DSkPDFMakeToUnicodeCmap.cpp63 SkGlyphID fGlyphId;
68 SkGlyphID fStart;
69 SkGlyphID fEnd;
76 SkGlyphID gid) { in write_glyph()
156 SkGlyphID firstGlyphID, in SkPDFAppendCmapSections()
157 SkGlyphID lastGlyphID) { in SkPDFAppendCmapSections()
171 SkGlyphID gid = i + glyphOffset; in SkPDFAppendCmapSections()
212 SkGlyphID firstGlyphID, in SkPDFMakeToUnicodeCmap()
213 SkGlyphID lastGlyphID) { in SkPDFMakeToUnicodeCmap()
DSkPDFMakeToUnicodeCmap.h17 SkGlyphID firstGlyphID,
18 SkGlyphID lastGlyphID);
25 SkGlyphID firstGlyphID,
26 SkGlyphID lastGlyphID);
DSkPDFFont.cpp178 static SkGlyphID first_nonzero_glyph_for_single_byte_encoding(SkGlyphID gid) { in first_nonzero_glyph_for_single_byte_encoding()
196 SkGlyphID subsetCode = in GetFontResource()
208 SkGlyphID lastGlyph = SkToU16(typeface->countGlyphs() - 1); in GetFontResource()
213 SkGlyphID firstNonZeroGlyph; in GetFontResource()
226 SkGlyphID firstGlyphID, in SkPDFFont()
227 SkGlyphID lastGlyphID, in SkPDFFont()
413 SingleByteGlyphIdIterator(SkGlyphID first, SkGlyphID last) in SingleByteGlyphIdIterator()
423 SkGlyphID operator*() const { return (SkGlyphID)fCurrent; } in operator *()
427 Iter(SkGlyphID f, int c) : fFirst(f), fCurrent(c) {} in Iter()
429 const SkGlyphID fFirst;
[all …]
/external/skqp/src/pdf/
DSkPDFGlyphUse.h12 SkPDFGlyphUse(SkGlyphID firstNonZero, SkGlyphID lastGlyph) in SkPDFGlyphUse()
20 SkGlyphID firstNonZero() const { return fFirstNonZero; } in firstNonZero()
21 SkGlyphID lastGlyph() const { return fLastGlyph; } in lastGlyph()
22 void set(SkGlyphID gid) { fBitSet.set(this->toCode(gid)); } in set()
23 bool has(SkGlyphID gid) const { return fBitSet.has(this->toCode(gid)); } in has()
36 SkGlyphID fFirstNonZero = 0;
37 SkGlyphID fLastGlyph = 0;
39 uint16_t toCode(SkGlyphID gid) const { in toCode()
DSkPDFFont.h57 bool hasGlyph(SkGlyphID gid) { in hasGlyph()
62 SkGlyphID glyphToPDFFontEncoding(SkGlyphID gid) const { in glyphToPDFFontEncoding()
71 void noteGlyphUsage(SkGlyphID glyph) { in noteGlyphUsage()
89 SkGlyphID glyphID);
109 SkGlyphID firstGlyphID() const { return fGlyphUsage.firstNonZero(); } in firstGlyphID()
110 SkGlyphID lastGlyphID() const { return fGlyphUsage.lastGlyph(); } in lastGlyphID()
121 SkGlyphID firstGlyphID,
122 SkGlyphID lastGlyphID,
DSkPDFMakeToUnicodeCmap.cpp63 SkGlyphID fGlyphId;
68 SkGlyphID fStart;
69 SkGlyphID fEnd;
76 SkGlyphID gid) { in write_glyph()
156 SkGlyphID firstGlyphID, in SkPDFAppendCmapSections()
157 SkGlyphID lastGlyphID) { in SkPDFAppendCmapSections()
171 SkGlyphID gid = i + glyphOffset; in SkPDFAppendCmapSections()
212 SkGlyphID firstGlyphID, in SkPDFMakeToUnicodeCmap()
213 SkGlyphID lastGlyphID) { in SkPDFMakeToUnicodeCmap()
DSkPDFMakeToUnicodeCmap.h17 SkGlyphID firstGlyphID,
18 SkGlyphID lastGlyphID);
25 SkGlyphID firstGlyphID,
26 SkGlyphID lastGlyphID);
DSkPDFFont.cpp179 static SkGlyphID first_nonzero_glyph_for_single_byte_encoding(SkGlyphID gid) { in first_nonzero_glyph_for_single_byte_encoding()
183 static bool has_outline_glyph(SkGlyphID gid, SkStrike* cache) { in has_outline_glyph()
191 SkGlyphID glyphID) { in GetFontResource()
203 SkGlyphID subsetCode = multibyte ? 0 : first_nonzero_glyph_for_single_byte_encoding(glyphID); in GetFontResource()
214 SkGlyphID lastGlyph = SkToU16(typeface->countGlyphs() - 1); in GetFontResource()
219 SkGlyphID firstNonZeroGlyph; in GetFontResource()
232 SkGlyphID firstGlyphID, in SkPDFFont()
233 SkGlyphID lastGlyphID, in SkPDFFont()
477 SkGlyphID firstGlyphID = pdfFont.firstGlyphID(); in emit_subset_type1()
478 SkGlyphID lastGlyphID = pdfFont.lastGlyphID(); in emit_subset_type1()
[all …]
/external/skqp/src/core/
DSkGlyphRun.h30 SkSpan<const SkGlyphID> glyphIDs,
35 void filloutGlyphsAndPositions(SkGlyphID* glyphIDs, SkPoint* positions);
39 SkSpan<const SkGlyphID> glyphsIDs() const { return fGlyphIDs; } in glyphsIDs()
48 const SkSpan<const SkGlyphID> fGlyphIDs;
107 SkSpan<const SkGlyphID> uniquifyGlyphIDs(
108 uint32_t universeSize, SkSpan<const SkGlyphID> glyphIDs,
109 SkGlyphID* uniqueGlyphIDs, uint16_t* denseindices);
120 const SkPaint&, const SkFont&, SkSpan<const SkGlyphID> glyphIDs, const SkPoint* pos);
132 SkSpan<const SkGlyphID> textToGlyphIDs(
137 SkSpan<const SkGlyphID> glyphIDs,
[all …]
DSkGlyphRun.cpp24 SkSpan<const SkGlyphID> glyphIDs, in SkGlyphRun()
40 void SkGlyphRun::filloutGlyphsAndPositions(SkGlyphID* glyphIDs, SkPoint* positions) { in filloutGlyphsAndPositions()
109 SkSpan<const SkGlyphID> SkGlyphIDSet::uniquifyGlyphIDs( in uniquifyGlyphIDs()
111 SkSpan<const SkGlyphID> glyphIDs, in uniquifyGlyphIDs()
112 SkGlyphID* uniqueGlyphIDs, in uniquifyGlyphIDs()
114 static constexpr SkGlyphID kUndefGlyph{0}; in uniquifyGlyphIDs()
123 sk_bzero(fUniverseToUnique, universeSize * sizeof(SkGlyphID)); in uniquifyGlyphIDs()
155 sk_bzero(fUniverseToUnique, 4096 * sizeof(SkGlyphID)); in uniquifyGlyphIDs()
159 return SkSpan<const SkGlyphID>(uniqueGlyphIDs, uniqueSize); in uniquifyGlyphIDs()
195 auto glyphIDs = SkSpan<const SkGlyphID>{it.glyphs(), runSize}; in drawTextBlob()
[all …]
DSkStrike.h44 bool isGlyphCached(SkGlyphID glyphID, SkFixed x, SkFixed y) const;
52 const SkGlyph& getGlyphIDAdvance(SkGlyphID);
60 const SkGlyph& getGlyphIDMetrics(SkGlyphID);
68 void getAdvances(SkSpan<const SkGlyphID>, SkPoint[]);
108 const SkGlyph* getCachedGlyphAnySubPix(SkGlyphID,
128 const SkGlyph& getGlyphMetrics(SkGlyphID glyphID, SkPoint position) override;
DSkTextToPathIter.h22 SkTextBaseIter(const SkGlyphID glyphs[], int count, const SkFont&, const SkPaint*);
29 const SkGlyphID* fGlyphs;
30 const SkGlyphID* fStop;
42 SkTextInterceptsIter(const SkGlyphID glyphs[], int count, const SkFont& font, in SkTextInterceptsIter()
DSkGlyph.h118 SkPackedGlyphID(SkGlyphID code) : SkPackedID(code) { } in SkPackedGlyphID()
119 SkPackedGlyphID(SkGlyphID code, SkFixed x, SkFixed y) : SkPackedID(code, x, y) { } in SkPackedGlyphID()
120 SkPackedGlyphID(SkGlyphID code, SkIPoint pt) : SkPackedID(code, pt.x(), pt.y()) { } in SkPackedGlyphID()
122 SkGlyphID code() const { in code()
123 return SkTo<SkGlyphID>(SkPackedID::code()); in code()
146 SkGlyphID getGlyphID() const { return fID.code(); } in getGlyphID()
/external/skia/include/core/
DSkFont.h298 SkGlyphID glyphs[], int maxGlyphCount) const;
307 SkGlyphID unicharToGlyph(SkUnichar uni) const;
309 void unicharsToGlyphs(const SkUnichar uni[], int count, SkGlyphID glyphs[]) const;
364 void getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[], SkRect bounds[]) const { in getWidths()
369 void getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[], std::nullptr_t) const { in getWidths()
382 void getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[]) const { in getWidths()
397 void getWidthsBounds(const SkGlyphID glyphs[], int count, SkScalar widths[], SkRect bounds[],
410 void getBounds(const SkGlyphID glyphs[], int count, SkRect bounds[], in getBounds()
423 void getPos(const SkGlyphID glyphs[], int count, SkPoint pos[], SkPoint origin = {0, 0}) const;
433 void getXPos(const SkGlyphID glyphs[], int count, SkScalar xpos[], SkScalar origin = 0) const;
[all …]
/external/skia/src/core/
DSkGlyphBuffer.h25 void setSource(SkZip<const SkGlyphID, const SkPoint> source) { in setSource() argument
52 SkZip<const SkGlyphID, const SkPoint> flipRejectsToSource() { in flipRejectsToSource()
61 SkZip<const SkGlyphID, const SkPoint> source() const { return fSource; } in source()
66 SkSourceGlyphBuffer(const SkZip<const SkGlyphID, const SkPoint>& source) { in SkSourceGlyphBuffer() argument
73 SkZip<const SkGlyphID, const SkPoint> fSource;
77 SkZip<SkGlyphID, SkPoint> fRejects;
78 SkSTArray<4, SkGlyphID> fRejectedGlyphIDs;
148 void startSource(const SkZip<const SkGlyphID, const SkPoint>& source);
152 const SkZip<const SkGlyphID, const SkPoint>& source,
171 const SkZip<const SkGlyphID, const SkPoint>& source,
DSkGlyphRun.h33 SkSpan<const SkGlyphID> glyphIDs,
42 SkSpan<const SkGlyphID> glyphsIDs() const { return fSource.get<0>(); } in glyphsIDs()
43 SkZip<const SkGlyphID, const SkPoint> source() const { return fSource; } in source()
52 const SkZip<const SkGlyphID, const SkPoint> fSource;
140 SkSpan<const SkGlyphID> textToGlyphIDs(
145 SkSpan<const SkGlyphID> glyphIDs,
164 std::vector<SkGlyphID> fScratchGlyphIDs;
/external/skqp/tests/
DPDFGlyphsToUnicodeTest.cpp18 static constexpr SkGlyphID kMaximumGlyphIndex = UINT16_MAX;
78 SkGlyphID lastGlyphID = SkToU16(glyphToUnicode.count() - 1); in DEF_TEST()
85 SkTMin<SkGlyphID>(0xFFFF, lastGlyphID)); in DEF_TEST()
108 SkTMin<SkGlyphID>(0x00FF, lastGlyphID)); in DEF_TEST()
127 SkTMin<SkGlyphID>(0x00FE, lastGlyphID)); in DEF_TEST()
141 SkTMin<SkGlyphID>(0x110, lastGlyphID)); in DEF_TEST()
181 SkTMin<SkGlyphID>(0xFFFF, lastGlyphID)); in DEF_TEST()
DGlyphRunTest.cpp17 SkGlyphID glyphs[] = {100, 3, 240, 3, 234}; in DEF_TEST()
18 auto glyphIDs = SkSpan<const SkGlyphID>(glyphs, SK_ARRAY_COUNT(glyphs)); in DEF_TEST()
20 SkGlyphID uniqueGlyphs[SK_ARRAY_COUNT(glyphs)]; in DEF_TEST()
26 std::vector<SkGlyphID> test{uniqueGlyphIDs.begin(), uniqueGlyphIDs.end()}; in DEF_TEST()
38 SkGlyphID answer[] = {100, 3, 240, 234}; in DEF_TEST()
63 runBuffer.glyphs[i] = static_cast<SkGlyphID>(i + runNum * count);
/external/skia/tests/
DPDFGlyphsToUnicodeTest.cpp17 static constexpr SkGlyphID kMaximumGlyphIndex = UINT16_MAX;
77 SkGlyphID lastGlyphID = SkToU16(glyphToUnicode.count() - 1); in DEF_TEST()
84 std::min<SkGlyphID>(0xFFFF, lastGlyphID)); in DEF_TEST()
107 std::min<SkGlyphID>(0x00FF, lastGlyphID)); in DEF_TEST()
126 std::min<SkGlyphID>(0x00FE, lastGlyphID)); in DEF_TEST()
140 std::min<SkGlyphID>(0x110, lastGlyphID)); in DEF_TEST()
180 std::min<SkGlyphID>(0xFFFF, lastGlyphID)); in DEF_TEST()
/external/skia/include/utils/
DSkCustomTypeface.h27 void setGlyph(SkGlyphID, float advance, const SkPath&);
28 void setGlyph(SkGlyphID, float advance, const SkPath&, const SkPaint&);
29 void setGlyph(SkGlyphID, float advance, sk_sp<SkImage>, float scale);
30 void setGlyph(SkGlyphID, float advance, sk_sp<SkPicture>);
/external/skqp/gm/
Dtexteffects.cpp46 SkAutoTArray<SkGlyphID> glyphs(glyphCount); in MakeFancyBlob()
61 memcpy(buf.glyphs, glyphs.get(), SkTo<uint32_t>(defaultRunLen) * sizeof(SkGlyphID)); in MakeFancyBlob()
75 SkTo<uint32_t>(horizontalRunLen) * sizeof(SkGlyphID)); in MakeFancyBlob()
87 SkTo<uint32_t>(fullRunLen) * sizeof(SkGlyphID)); in MakeFancyBlob()
143 static sk_sp<SkTextBlob> make_text(const SkFont& font, const SkGlyphID glyphs[], int count) { in make_text()
144 return SkTextBlob::MakeFromText(glyphs, count * sizeof(SkGlyphID), font, in make_text()
148 static sk_sp<SkTextBlob> make_posh(const SkFont& font, const SkGlyphID glyphs[], int count, in make_posh()
155 return SkTextBlob::MakeFromPosTextH(glyphs, count * sizeof(SkGlyphID), xpos.get(), 0, font, in make_posh()
159 static sk_sp<SkTextBlob> make_pos(const SkFont& font, const SkGlyphID glyphs[], int count, in make_pos()
166 return SkTextBlob::MakeFromPosText(glyphs, count * sizeof(SkGlyphID), pos.get(), font, in make_pos()
[all …]
/external/skia/gm/
Dtexteffects.cpp55 SkAutoTArray<SkGlyphID> glyphs(glyphCount); in MakeFancyBlob()
70 memcpy(buf.glyphs, glyphs.get(), SkTo<uint32_t>(defaultRunLen) * sizeof(SkGlyphID)); in MakeFancyBlob()
84 SkTo<uint32_t>(horizontalRunLen) * sizeof(SkGlyphID)); in MakeFancyBlob()
96 SkTo<uint32_t>(fullRunLen) * sizeof(SkGlyphID)); in MakeFancyBlob()
151 static sk_sp<SkTextBlob> make_text(const SkFont& font, const SkGlyphID glyphs[], int count) { in make_text()
152 return SkTextBlob::MakeFromText(glyphs, count * sizeof(SkGlyphID), font, in make_text()
156 static sk_sp<SkTextBlob> make_posh(const SkFont& font, const SkGlyphID glyphs[], int count, in make_posh()
163 return SkTextBlob::MakeFromPosTextH(glyphs, count * sizeof(SkGlyphID), xpos.get(), 0, font, in make_posh()
167 static sk_sp<SkTextBlob> make_pos(const SkFont& font, const SkGlyphID glyphs[], int count, in make_pos()
174 return SkTextBlob::MakeFromPosText(glyphs, count * sizeof(SkGlyphID), pos.get(), font, in make_pos()
[all …]
/external/skia/src/utils/
DSkShaperJSONWriter.h46 std::function<void(size_t, SkSpan<const char>, SkSpan<const SkGlyphID>)>;
51 SkSpan<const SkGlyphID> glyphIDs,
58 SkSpan<const SkGlyphID> glyphIDs);
61 std::vector<SkGlyphID> fGlyphs;

1234567