Home
last modified time | relevance | path

Searched refs:glyphIDs (Results 1 – 25 of 30) sorted by relevance

12

/external/skqp/src/core/
DSkGlyphRun.cpp24 SkSpan<const SkGlyphID> glyphIDs, in SkGlyphRun() argument
28 , fGlyphIDs{glyphIDs}
40 void SkGlyphRun::filloutGlyphsAndPositions(SkGlyphID* glyphIDs, SkPoint* positions) { in filloutGlyphsAndPositions() argument
41 memcpy(glyphIDs, fGlyphIDs.data(), fGlyphIDs.size_bytes()); in filloutGlyphsAndPositions()
111 SkSpan<const SkGlyphID> glyphIDs, in uniquifyGlyphIDs() argument
131 for (auto glyphID : glyphIDs) { in uniquifyGlyphIDs()
165 auto glyphIDs = textToGlyphIDs(font, bytes, byteLength, kUTF8_SkTextEncoding); in drawTextUTF8() local
166 if (!glyphIDs.empty()) { in drawTextUTF8()
167 this->initialize(glyphIDs.size()); in drawTextUTF8()
168 this->simplifyDrawText(font, glyphIDs, origin, fPositions); in drawTextUTF8()
[all …]
DSkGlyphRun.h30 SkSpan<const SkGlyphID> glyphIDs,
35 void filloutGlyphsAndPositions(SkGlyphID* glyphIDs, SkPoint* positions);
108 uint32_t universeSize, SkSpan<const SkGlyphID> glyphIDs,
120 const SkPaint&, const SkFont&, SkSpan<const SkGlyphID> glyphIDs, const SkPoint* pos);
137 SkSpan<const SkGlyphID> glyphIDs,
145 const SkFont& font, SkSpan<const SkGlyphID> glyphIDs,
150 const SkFont& font, SkSpan<const SkGlyphID> glyphIDs,
155 const SkFont& font, SkSpan<const SkGlyphID> glyphIDs,
DSkGlyphRunPainter.cpp271 auto glyphIDs = SkSpan<const SkGlyphID>{fARGBGlyphsIDs}; in processARGBFallback()
288 glyphIDs, in processARGBFallback()
324 glyphIDs, in processARGBFallback()
697 SkSpan<const SkGlyphID> glyphIDs, in generateFromGlyphRunList()
713 for (auto glyphID : glyphIDs) { in generateFromGlyphRunList()
718 for (auto glyphID : glyphIDs) { in generateFromGlyphRunList()
983 SkSpan<const SkGlyphID> glyphIDs, in operator ()()
996 for (auto glyphID : glyphIDs) { in operator ()()
DSkStrike.cpp84 void SkStrike::getAdvances(SkSpan<const SkGlyphID> glyphIDs, SkPoint advances[]) { in getAdvances() argument
85 for (auto glyphID : glyphIDs) { in getAdvances()
/external/skia/src/core/
DSkGlyphRun.cpp26 SkSpan<const SkGlyphID> glyphIDs, in SkGlyphRun() argument
30 : fSource{SkMakeZip(glyphIDs, positions)} in SkGlyphRun()
168 auto glyphIDs = run.glyphsIDs(); in makeBlob() local
169 memcpy(buffer.glyphs, glyphIDs.data(), glyphIDs.size_bytes()); in makeBlob()
176 const SkFont& font, SkSpan<const SkGlyphID> glyphIDs, SkPoint origin, SkPoint* buffer) { in draw_text_positions() argument
179 auto glyphs = storage.glyphs(glyphIDs); in draw_text_positions()
187 return SkMakeSpan(buffer, glyphIDs.size()); in draw_text_positions()
194 auto glyphIDs = textToGlyphIDs(font, bytes, byteLength, encoding); in textToGlyphRunList() local
196 this->prepareBuffers(glyphIDs.size(), 0); in textToGlyphRunList()
197 if (!glyphIDs.empty()) { in textToGlyphRunList()
[all …]
DSkScalerCache.cpp90 SkSpan<const SkGlyphID> glyphIDs, PathDetail pathDetail, const SkGlyph** results) { in internalPrepare() argument
93 for (auto glyphID : glyphIDs) { in internalPrepare()
103 return {{results, glyphIDs.size()}, delta}; in internalPrepare()
134 SkSpan<const SkGlyphID> glyphIDs, const SkGlyph* results[]) { in metrics() argument
136 auto [glyphs, delta] = this->internalPrepare(glyphIDs, kMetricsOnly, results); in metrics()
141 SkSpan<const SkGlyphID> glyphIDs, const SkGlyph* results[]) { in preparePaths() argument
143 auto [glyphs, delta] = this->internalPrepare(glyphIDs, kMetricsAndPath, results); in preparePaths()
148 SkSpan<const SkPackedGlyphID> glyphIDs, const SkGlyph* results[]) { in prepareImages() argument
152 for (auto glyphID : glyphIDs) { in prepareImages()
159 return {{results, glyphIDs.size()}, delta}; in prepareImages()
DSkStrikeSpec.cpp225 SkSpan<const SkGlyph*> SkBulkGlyphMetrics::glyphs(SkSpan<const SkGlyphID> glyphIDs) { in glyphs() argument
226 fGlyphs.reset(glyphIDs.size()); in glyphs()
227 return fStrike->metrics(glyphIDs, fGlyphs.get()); in glyphs()
240 SkSpan<const SkGlyph*> SkBulkGlyphMetricsAndPaths::glyphs(SkSpan<const SkGlyphID> glyphIDs) { in glyphs() argument
241 fGlyphs.reset(glyphIDs.size()); in glyphs()
242 return fStrike->preparePaths(glyphIDs, fGlyphs.get()); in glyphs()
263 SkSpan<const SkGlyph*> SkBulkGlyphMetricsAndImages::glyphs(SkSpan<const SkPackedGlyphID> glyphIDs) { in glyphs() argument
264 fGlyphs.reset(glyphIDs.size()); in glyphs()
265 return fStrike->prepareImages(glyphIDs, fGlyphs.get()); in glyphs()
DSkFont.cpp225 const SkGlyphID* glyphIDs = atg.glyphs(); in measureText() local
229 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(SkMakeSpan(glyphIDs, glyphCount)); in measureText()
261 void SkFont::getWidthsBounds(const SkGlyphID glyphIDs[], in getWidthsBounds() argument
268 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(SkMakeSpan(glyphIDs, count)); in getWidthsBounds()
288 void SkFont::getPos(const SkGlyphID glyphIDs[], int count, SkPoint pos[], SkPoint origin) const { in getPos() argument
291 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(SkMakeSpan(glyphIDs, count)); in getPos()
301 const SkGlyphID glyphIDs[], int count, SkScalar xpos[], SkScalar origin) const { in getXPos() argument
305 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(SkMakeSpan(glyphIDs, count)); in getXPos()
315 void SkFont::getPaths(const SkGlyphID glyphIDs[], int count, in getPaths() argument
323 SkSpan<const SkGlyph*> glyphs = paths.glyphs(SkMakeSpan(glyphIDs, count)); in getPaths()
DSkStrikeCache.h77 SkSpan<const SkGlyph*> metrics(SkSpan<const SkGlyphID> glyphIDs, in metrics() argument
79 auto [glyphs, increase] = fScalerCache.metrics(glyphIDs, results); in metrics()
84 SkSpan<const SkGlyph*> preparePaths(SkSpan<const SkGlyphID> glyphIDs, in preparePaths() argument
86 auto [glyphs, increase] = fScalerCache.preparePaths(glyphIDs, results); in preparePaths()
91 SkSpan<const SkGlyph*> prepareImages(SkSpan<const SkPackedGlyphID> glyphIDs, in prepareImages() argument
93 auto [glyphs, increase] = fScalerCache.prepareImages(glyphIDs, results); in prepareImages()
DSkScalerCache.h84 SkSpan<const SkGlyphID> glyphIDs, const SkGlyph* results[]) SK_EXCLUDES(fMu);
87 SkSpan<const SkGlyphID> glyphIDs, const SkGlyph* results[]) SK_EXCLUDES(fMu);
90 SkSpan<const SkPackedGlyphID> glyphIDs, const SkGlyph* results[]) SK_EXCLUDES(fMu);
139 SkSpan<const SkGlyphID> glyphIDs,
DSkStrikeSpec.h113 SkSpan<const SkGlyph*> glyphs(SkSpan<const SkGlyphID> glyphIDs);
126 SkSpan<const SkGlyph*> glyphs(SkSpan<const SkGlyphID> glyphIDs);
DSkGlyphRun.h33 SkSpan<const SkGlyphID> glyphIDs,
145 SkSpan<const SkGlyphID> glyphIDs,
DSkGlyphRunPainter.cpp143 auto glyphIDs = fRejects.source().get<0>(); in drawForBitmapDevice() local
145 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(glyphIDs); in drawForBitmapDevice()
/external/skia/tests/
DSkShaperJSONWriterTest.cpp77 std::vector<SkGlyphID> glyphIDs; in DEF_TEST() member
81 std::vector<SkGlyphID> glyphIDs; in DEF_TEST() member
107 REPORTER_ASSERT(reporter, a.glyphIDs == toCheckGlyphIDs); in DEF_TEST()
117 SkMakeSpan(oneCase.glyphIDs), in DEF_TEST()
DSkGlyphBufferTest.cpp102 const SkGlyphID glyphIDs[] = {1, 2, 3, 4}; in DEF_TEST() local
103 auto source = SkMakeZip(glyphIDs, positions); in DEF_TEST()
156 const SkGlyphID glyphIDs[] = {1, 2, 3, 4}; in DEF_TEST() local
158 auto source = SkMakeZip(glyphIDs, positions); in DEF_TEST()
165 REPORTER_ASSERT(reporter, packedID.packedID().glyphID() == glyphIDs[i]); in DEF_TEST()
177 REPORTER_ASSERT(reporter, glyphIDs[i] == packedID.packedID().glyphID()); in DEF_TEST()
/external/skia/src/utils/
DSkShaperJSONWriter.cpp169 SkSpan<const SkGlyphID> glyphIDs, in VisualizeClusters() argument
187 SkSpan<const SkGlyphID> glyphSpan{&glyphIDs[glyphRangeStart], glyphRangeCount}; in VisualizeClusters()
209 SkSpan<const SkGlyphID> glyphSpan{&glyphIDs[glyphStartIndex], in VisualizeClusters()
223 SkSpan<const SkGlyphID> glyphIDs) { in displayMToN() argument
225 std::string mString = std::to_string(glyphIDs.size()); in displayMToN()
231 for (auto glyphID : glyphIDs) { in displayMToN()
DSkShaperJSONWriter.h51 SkSpan<const SkGlyphID> glyphIDs,
58 SkSpan<const SkGlyphID> glyphIDs);
/external/skia/src/pdf/
DSkPDFMakeCIDGlyphWidthsArray.cpp110 std::vector<SkGlyphID> glyphIDs; in SkPDFMakeCIDGlyphWidthsArray() local
112 glyphIDs.push_back(SkToU16(index)); in SkPDFMakeCIDGlyphWidthsArray()
114 auto glyphs = paths.glyphs(SkMakeSpan(glyphIDs)); in SkPDFMakeCIDGlyphWidthsArray()
DSkPDFType1Font.cpp306 SkAutoTArray<SkGlyphID> glyphIDs{glyphRangeSize}; in SkPDFEmitType1Font() local
307 glyphIDs[0] = 0; in SkPDFEmitType1Font()
309 glyphIDs[gId - firstGlyphID + 1] = gId; in SkPDFEmitType1Font()
313 auto glyphs = metrics.glyphs(SkMakeSpan(glyphIDs.get(), glyphRangeSize)); in SkPDFEmitType1Font()
DSkPDFDevice.cpp806 const SkGlyphID* glyphIDs = glyphRun.glyphsIDs().data(); in internalDrawGlyphRun() local
810 if (!glyphCount || !glyphIDs || glyphRunFont.getSize() <= 0 || this->hasEmptyClip()) { in internalDrawGlyphRun()
893 unichar != map_glyph(glyphToUnicode, glyphIDs[index])) // test single Unichar map in internalDrawGlyphRun()
913 SkGlyphID gid = glyphIDs[index]; in internalDrawGlyphRun()
/external/skqp/tests/
DGlyphRunTest.cpp18 auto glyphIDs = SkSpan<const SkGlyphID>(glyphs, SK_ARRAY_COUNT(glyphs)); in DEF_TEST() local
24 auto uniqueGlyphIDs = gs.uniquifyGlyphIDs(universeSize, glyphIDs, uniqueGlyphs, denseIndices); in DEF_TEST()
/external/skia/bench/
DSkGlyphCacheBench.cpp34 SkSpan<const SkPackedGlyphID> glyphIDs{&glyphs[SkTo<int>(' ')], glyphCount}; in do_font_stuff() local
37 (void)images.glyphs(glyphIDs); in do_font_stuff()
/external/skia/include/core/
DSkFont.h453 void getPaths(const SkGlyphID glyphIDs[], int count,
/external/skqp/include/core/
DSkFont.h453 void getPaths(const uint16_t glyphIDs[], int count,
/external/fonttools/Lib/fontTools/ttLib/tables/
DotTables.py572 glyphIDs = [getGlyphID(glyphName) for glyphName in glyphs ]
573 brokenOrder = sorted(glyphIDs) != glyphIDs
575 last = glyphIDs[0]
577 for glyphID in glyphIDs[1:]:

12