Home
last modified time | relevance | path

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

12345678

/third_party/flutter/skia/src/core/
DSkGlyphRun.h31 SkSpan<const SkGlyphID> glyphIDs,
36 void filloutGlyphsAndPositions(SkGlyphID* glyphIDs, SkPoint* positions);
40 SkSpan<const SkGlyphID> glyphsIDs() const { return fGlyphIDs; } in glyphsIDs()
49 const SkSpan<const SkGlyphID> fGlyphIDs;
108 SkSpan<const SkGlyphID> uniquifyGlyphIDs(
109 uint32_t universeSize, SkSpan<const SkGlyphID> glyphIDs,
110 SkGlyphID* uniqueGlyphIDs, uint16_t* denseindices);
121 const SkPaint&, const SkFont&, SkSpan<const SkGlyphID> glyphIDs, const SkPoint* pos);
133 SkSpan<const SkGlyphID> textToGlyphIDs(
138 SkSpan<const SkGlyphID> glyphIDs,
[all …]
DSkGlyphRun.cpp25 SkSpan<const SkGlyphID> glyphIDs, in SkGlyphRun()
41 void SkGlyphRun::filloutGlyphsAndPositions(SkGlyphID* glyphIDs, SkPoint* positions) { in filloutGlyphsAndPositions()
110 SkSpan<const SkGlyphID> SkGlyphIDSet::uniquifyGlyphIDs( in uniquifyGlyphIDs()
112 SkSpan<const SkGlyphID> glyphIDs, in uniquifyGlyphIDs()
113 SkGlyphID* uniqueGlyphIDs, in uniquifyGlyphIDs()
115 static constexpr SkGlyphID kUndefGlyph{0}; in uniquifyGlyphIDs()
124 sk_bzero(fUniverseToUnique, universeSize * sizeof(SkGlyphID)); in uniquifyGlyphIDs()
156 sk_bzero(fUniverseToUnique, 4096 * sizeof(SkGlyphID)); in uniquifyGlyphIDs()
160 return SkSpan<const SkGlyphID>(uniqueGlyphIDs, uniqueSize); in uniquifyGlyphIDs()
243 auto glyphIDs = SkSpan<const SkGlyphID>{it.glyphs(), runSize}; in simplifyTextBlobIgnoringRSXForm()
[all …]
DSkStrike.h45 SkGlyph* glyph(SkGlyphID glyphID);
46 SkGlyph* glyph(SkGlyphID, SkPoint);
87 const SkGlyph* getCachedGlyphAnySubPix(SkGlyphID,
113 SkSpan<const SkGlyph*> metrics(SkSpan<const SkGlyphID> glyphIDs,
116 SkSpan<const SkGlyph*> preparePaths(SkSpan<const SkGlyphID> glyphIDs,
184 SkSpan<const SkGlyphID> glyphIDs,
/third_party/flutter/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.has(this->toCode(gid)); } in has()
36 SkGlyphID fFirstNonZero = 0;
37 SkGlyphID fLastGlyph = 0;
39 uint16_t toCode(SkGlyphID gid) const { in toCode()
DSkPDFFont.h62 bool hasGlyph(SkGlyphID gid) { in hasGlyph()
67 SkGlyphID glyphToPDFFontEncoding(SkGlyphID gid) const { in glyphToPDFFontEncoding()
76 void noteGlyphUsage(SkGlyphID glyph) { in noteGlyphUsage()
118 SkGlyphID firstGlyphID() const { return fGlyphUsage.firstNonZero(); } in firstGlyphID()
119 SkGlyphID lastGlyphID() const { return fGlyphUsage.lastGlyph(); } in lastGlyphID()
130 SkGlyphID firstGlyphID,
131 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()
DSkPDFFont.cpp179 static SkGlyphID first_nonzero_glyph_for_single_byte_encoding(SkGlyphID gid) { in first_nonzero_glyph_for_single_byte_encoding()
197 SkGlyphID subsetCode = in GetFontResource()
209 SkGlyphID lastGlyph = SkToU16(typeface->countGlyphs() - 1); in GetFontResource()
214 SkGlyphID firstNonZeroGlyph; in GetFontResource()
227 SkGlyphID firstGlyphID, in SkPDFFont()
228 SkGlyphID lastGlyphID, in SkPDFFont()
410 SingleByteGlyphIdIterator(SkGlyphID first, SkGlyphID last) in SingleByteGlyphIdIterator()
420 SkGlyphID operator*() const { return (SkGlyphID)fCurrent; } in operator *()
424 Iter(SkGlyphID f, int c) : fFirst(f), fCurrent(c) {} in Iter()
426 const SkGlyphID fFirst;
[all …]
DSkPDFMakeToUnicodeCmap.h17 SkGlyphID firstGlyphID,
18 SkGlyphID lastGlyphID);
25 SkGlyphID firstGlyphID,
26 SkGlyphID lastGlyphID);
/third_party/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.h60 bool hasGlyph(SkGlyphID gid) { in hasGlyph()
65 SkGlyphID glyphToPDFFontEncoding(SkGlyphID gid) const { in glyphToPDFFontEncoding()
74 void noteGlyphUsage(SkGlyphID glyph) { in noteGlyphUsage()
116 SkGlyphID firstGlyphID() const { return fGlyphUsage.firstNonZero(); } in firstGlyphID()
117 SkGlyphID lastGlyphID() const { return fGlyphUsage.lastGlyph(); } in lastGlyphID()
128 SkGlyphID firstGlyphID,
129 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()
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 …]
DSkPDFMakeToUnicodeCmap.h17 SkGlyphID firstGlyphID,
18 SkGlyphID lastGlyphID);
25 SkGlyphID firstGlyphID,
26 SkGlyphID lastGlyphID);
/third_party/skia/include/core/
DSkFont.h300 SkGlyphID glyphs[], int maxGlyphCount) const;
309 SkGlyphID unicharToGlyph(SkUnichar uni) const;
311 void unicharsToGlyphs(const SkUnichar uni[], int count, SkGlyphID glyphs[]) const;
366 void getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[], SkRect bounds[]) const { in getWidths()
371 void getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[], std::nullptr_t) const { in getWidths()
384 void getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[]) const { in getWidths()
399 void getWidthsBounds(const SkGlyphID glyphs[], int count, SkScalar widths[], SkRect bounds[],
412 void getBounds(const SkGlyphID glyphs[], int count, SkRect bounds[], in getBounds()
425 void getPos(const SkGlyphID glyphs[], int count, SkPoint pos[], SkPoint origin = {0, 0}) const;
435 void getXPos(const SkGlyphID glyphs[], int count, SkScalar xpos[], SkScalar origin = 0) const;
[all …]
/third_party/flutter/skia/include/core/
DSkFont.h296 SkGlyphID glyphs[], int maxGlyphCount) const;
305 SkGlyphID unicharToGlyph(SkUnichar uni) const;
307 void unicharsToGlyphs(const SkUnichar uni[], int count, SkGlyphID glyphs[]) const;
368 void getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[], SkRect bounds[]) const { in getWidths()
373 void getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[], std::nullptr_t) const { in getWidths()
386 void getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[]) const { in getWidths()
401 void getWidthsBounds(const SkGlyphID glyphs[], int count, SkScalar widths[], SkRect bounds[],
414 void getBounds(const SkGlyphID glyphs[], int count, SkRect bounds[], in getBounds()
427 void getPos(const SkGlyphID glyphs[], int count, SkPoint pos[], SkPoint origin = {0, 0}) const;
437 void getXPos(const SkGlyphID glyphs[], int count, SkScalar xpos[], SkScalar origin = 0) const;
[all …]
/third_party/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;
/third_party/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()
/third_party/flutter/skia/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);
/third_party/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 …]
/third_party/flutter/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 …]
/third_party/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>);
/third_party/flutter/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;
/third_party/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;

12345678