/external/skia/src/pdf/ |
D | SkPDFGlyphUse.h | 12 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()
|
D | SkPDFFont.h | 61 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,
|
D | SkPDFMakeToUnicodeCmap.cpp | 63 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()
|
D | SkPDFMakeToUnicodeCmap.h | 17 SkGlyphID firstGlyphID, 18 SkGlyphID lastGlyphID); 25 SkGlyphID firstGlyphID, 26 SkGlyphID lastGlyphID);
|
D | SkPDFFont.cpp | 194 static SkGlyphID first_nonzero_glyph_for_single_byte_encoding(SkGlyphID gid) { in first_nonzero_glyph_for_single_byte_encoding() 212 SkGlyphID subsetCode = in GetFontResource() 224 SkGlyphID lastGlyph = SkToU16(typeface->countGlyphs() - 1); in GetFontResource() 229 SkGlyphID firstNonZeroGlyph; in GetFontResource() 242 SkGlyphID firstGlyphID, in SkPDFFont() 243 SkGlyphID lastGlyphID, in SkPDFFont() 430 SingleByteGlyphIdIterator(SkGlyphID first, SkGlyphID last) in SingleByteGlyphIdIterator() 440 SkGlyphID operator*() const { return (SkGlyphID)fCurrent; } in operator *() 444 Iter(SkGlyphID f, int c) : fFirst(f), fCurrent(c) {} in Iter() 446 const SkGlyphID fFirst; [all …]
|
/external/skia/include/core/ |
D | SkFont.h | 301 SkGlyphID glyphs[], int maxGlyphCount) const; 310 SkGlyphID unicharToGlyph(SkUnichar uni) const; 312 void unicharsToGlyphs(const SkUnichar uni[], int count, SkGlyphID glyphs[]) const; 367 void getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[], SkRect bounds[]) const { in getWidths() 372 void getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[], std::nullptr_t) const { in getWidths() 385 void getWidths(const SkGlyphID glyphs[], int count, SkScalar widths[]) const { in getWidths() 400 void getWidthsBounds(const SkGlyphID glyphs[], int count, SkScalar widths[], SkRect bounds[], 413 void getBounds(const SkGlyphID glyphs[], int count, SkRect bounds[], in getBounds() 426 void getPos(const SkGlyphID glyphs[], int count, SkPoint pos[], SkPoint origin = {0, 0}) const; 436 void getXPos(const SkGlyphID glyphs[], int count, SkScalar xpos[], SkScalar origin = 0) const; [all …]
|
D | SkTypeface.h | 186 void unicharsToGlyphs(const SkUnichar uni[], int count, SkGlyphID glyphs[]) const; 189 SkGlyphID glyphs[], int maxGlyphCount) const; 197 SkGlyphID unicharToGlyph(SkUnichar unichar) const; 279 bool getKerningPairAdjustments(const SkGlyphID glyphs[], int count, 413 virtual void onCharsToGlyphs(const SkUnichar* chars, int count, SkGlyphID glyphs[]) const = 0; 417 virtual bool onGetKerningPairAdjustments(const SkGlyphID glyphs[], int count,
|
/external/skia/src/core/ |
D | SkGlyphBuffer.h | 32 void setSource(SkZip<const SkGlyphID, const SkPoint> source) { in setSource() argument 54 SkZip<const SkGlyphID, const SkPoint> flipRejectsToSource() { in flipRejectsToSource() 61 SkZip<const SkGlyphID, const SkPoint> source() const { return fSource; } in source() 64 SkSourceGlyphBuffer(const SkZip<const SkGlyphID, const SkPoint>& source) { in SkSourceGlyphBuffer() argument 71 SkZip<const SkGlyphID, const SkPoint> fSource; 74 SkZip<SkGlyphID, SkPoint> fRejects; 75 SkSTArray<4, SkGlyphID> fRejectedGlyphIDs; 88 void startSource(const SkZip<const SkGlyphID, const SkPoint>& source);
|
D | SkGlyphRunPainter.cpp | 46 std::tuple<SkZip<const SkGlyph*, SkPoint>, SkZip<SkGlyphID, SkPoint>> 48 SkZip<const SkGlyphID, const SkPoint> source, in prepare_for_path_drawing() argument 50 SkZip<SkGlyphID, SkPoint> rejectedBuffer) { in prepare_for_path_drawing() argument 77 std::tuple<SkZip<const SkGlyph*, SkPoint>, SkZip<SkGlyphID, SkPoint>> 79 SkZip<const SkGlyphID, const SkPoint> source, in prepare_for_drawable_drawing() argument 81 SkZip<SkGlyphID, SkPoint> rejectedBuffer) { in prepare_for_drawable_drawing() argument 106 std::tuple<SkZip<const SkGlyph*, SkPoint>, SkZip<SkGlyphID, SkPoint>> 109 SkZip<const SkGlyphID, const SkPoint> source, in prepare_for_direct_mask_drawing() argument 111 SkZip<SkGlyphID, SkPoint> rejectedBuffer) { in prepare_for_direct_mask_drawing() argument 168 SkSTArray<64, SkGlyphID> rejectedGlyphIDs; in drawForBitmapDevice() [all …]
|
D | SkStrikeSpec.h | 124 SkSpan<const SkGlyph*> glyphs(SkSpan<const SkGlyphID> glyphIDs); 125 const SkGlyph* glyph(SkGlyphID glyphID); 138 SkSpan<const SkGlyph*> glyphs(SkSpan<const SkGlyphID> glyphIDs); 139 const SkGlyph* glyph(SkGlyphID glyphID); 154 SkSpan<const SkGlyph*> glyphs(SkSpan<const SkGlyphID> glyphIDs); 155 const SkGlyph* glyph(SkGlyphID glyphID);
|
D | SkStrikeSpec.cpp | 235 SkSpan<const SkGlyph*> SkBulkGlyphMetrics::glyphs(SkSpan<const SkGlyphID> glyphIDs) { in glyphs() 240 const SkGlyph* SkBulkGlyphMetrics::glyph(SkGlyphID glyphID) { in glyph() 241 return this->glyphs(SkSpan<const SkGlyphID>{&glyphID, 1})[0]; in glyph() 252 SkSpan<const SkGlyph*> SkBulkGlyphMetricsAndPaths::glyphs(SkSpan<const SkGlyphID> glyphIDs) { in glyphs() 257 const SkGlyph* SkBulkGlyphMetricsAndPaths::glyph(SkGlyphID glyphID) { in glyph() 258 return this->glyphs(SkSpan<const SkGlyphID>{&glyphID, 1})[0]; in glyph() 277 SkSpan<const SkGlyph*> SkBulkGlyphMetricsAndDrawables::glyphs(SkSpan<const SkGlyphID> glyphIDs) { in glyphs() 282 const SkGlyph* SkBulkGlyphMetricsAndDrawables::glyph(SkGlyphID glyphID) { in glyph() 283 return this->glyphs(SkSpan<const SkGlyphID>{&glyphID, 1})[0]; in glyph()
|
D | SkFont.cpp | 148 SkGlyphID SkFont::unicharToGlyph(SkUnichar uni) const { in unicharToGlyph() 152 void SkFont::unicharsToGlyphs(const SkUnichar uni[], int count, SkGlyphID glyphs[]) const { in unicharsToGlyphs() 157 SkGlyphID glyphs[], int maxGlyphCount) const { in textToGlyphs() 173 const SkGlyphID* glyphIDs = atg.glyphs(); in measureText() 208 void SkFont::getWidthsBounds(const SkGlyphID glyphIDs[], in getWidthsBounds() 233 void SkFont::getPos(const SkGlyphID glyphIDs[], int count, SkPoint pos[], SkPoint origin) const { in getPos() 246 const SkGlyphID glyphIDs[], int count, SkScalar xpos[], SkScalar origin) const { in getXPos() 260 void SkFont::getPaths(const SkGlyphID glyphIDs[], int count, in getPaths() 275 bool SkFont::getPath(SkGlyphID glyphID, SkPath* path) const { in getPath() 379 void SkFontPriv::GlyphsToUnichars(const SkFont& font, const SkGlyphID glyphs[], int count, in GlyphsToUnichars()
|
D | SkGlyph.h | 76 constexpr explicit SkPackedGlyphID(SkGlyphID glyphID) in SkPackedGlyphID() 79 constexpr SkPackedGlyphID(SkGlyphID glyphID, SkFixed x, SkFixed y) in SkPackedGlyphID() 82 constexpr SkPackedGlyphID(SkGlyphID glyphID, uint32_t x, uint32_t y) in SkPackedGlyphID() 85 SkPackedGlyphID(SkGlyphID glyphID, SkPoint pt, SkIPoint mask) in SkPackedGlyphID() 101 SkGlyphID glyphID() const { in glyphID() 136 static constexpr uint32_t PackIDSubXSubY(SkGlyphID glyphID, uint32_t x, uint32_t y) { in PackIDSubXSubY() 159 static uint32_t PackIDSkPoint(SkGlyphID glyphID, SkPoint pt, SkIPoint mask) { in PackIDSkPoint() 190 static constexpr uint32_t PackIDXY(SkGlyphID glyphID, SkFixed x, SkFixed y) { in PackIDXY() 401 SkGlyphID getGlyphID() const { return fID.glyphID(); } in getGlyphID()
|
D | SkStrike.h | 82 SkSpan<const SkGlyphID> glyphIDs, const SkGlyph* results[]) SK_EXCLUDES(fStrikeLock); 85 SkSpan<const SkGlyphID> glyphIDs, const SkGlyph* results[]) SK_EXCLUDES(fStrikeLock); 91 SkSpan<const SkGlyphID> glyphIDs, const SkGlyph* results[]) SK_EXCLUDES(fStrikeLock); 148 SkSpan<const SkGlyphID> glyphIDs,
|
/external/skia/tests/ |
D | PDFGlyphsToUnicodeTest.cpp | 26 static constexpr SkGlyphID kMaximumGlyphIndex = UINT16_MAX; 86 SkGlyphID lastGlyphID = SkToU16(glyphToUnicode.size() - 1); in DEF_TEST() 93 std::min<SkGlyphID>(0xFFFF, lastGlyphID)); in DEF_TEST() 116 std::min<SkGlyphID>(0x00FF, lastGlyphID)); in DEF_TEST() 135 std::min<SkGlyphID>(0x00FE, lastGlyphID)); in DEF_TEST() 149 std::min<SkGlyphID>(0x110, lastGlyphID)); in DEF_TEST() 189 std::min<SkGlyphID>(0xFFFF, lastGlyphID)); in DEF_TEST()
|
/external/skia/gm/ |
D | texteffects.cpp | 57 AutoTArray<SkGlyphID> glyphs(glyphCount); in MakeFancyBlob() 72 memcpy(buf.glyphs, glyphs.get(), SkTo<uint32_t>(defaultRunLen) * sizeof(SkGlyphID)); in MakeFancyBlob() 86 SkTo<uint32_t>(horizontalRunLen) * sizeof(SkGlyphID)); in MakeFancyBlob() 98 SkTo<uint32_t>(fullRunLen) * sizeof(SkGlyphID)); in MakeFancyBlob() 153 static sk_sp<SkTextBlob> make_text(const SkFont& font, const SkGlyphID glyphs[], int count) { in make_text() 154 return SkTextBlob::MakeFromText(glyphs, count * sizeof(SkGlyphID), font, in make_text() 158 static sk_sp<SkTextBlob> make_posh(const SkFont& font, const SkGlyphID glyphs[], int count, in make_posh() 165 return SkTextBlob::MakeFromPosTextH(glyphs, count * sizeof(SkGlyphID), xpos.get(), 0, font, in make_posh() 169 static sk_sp<SkTextBlob> make_pos(const SkFont& font, const SkGlyphID glyphs[], int count, in make_pos() 176 return SkTextBlob::MakeFromPosText(glyphs, count * sizeof(SkGlyphID), pos.get(), font, in make_pos() [all …]
|
/external/skia/src/text/ |
D | GlyphRun.h | 59 SkSpan<const SkGlyphID> glyphIDs, 68 SkSpan<const SkGlyphID> glyphsIDs() const { return fSource.get<0>(); } in glyphsIDs() 69 SkZip<const SkGlyphID, const SkPoint> source() const { return fSource; } in source() 77 const SkZip<const SkGlyphID, const SkPoint> fSource; 177 SkSpan<const SkGlyphID> textToGlyphIDs( 182 SkSpan<const SkGlyphID> glyphIDs, 201 std::vector<SkGlyphID> fScratchGlyphIDs;
|
D | GlyphRun.cpp | 26 SkSpan<const SkGlyphID> glyphIDs, in GlyphRun() 117 SkZip<const SkGlyphID, const SkPoint> source, in glyphrun_source_bounds() argument 122 SkSpan<const SkGlyphID> glyphIDs = source.get<0>(); in glyphrun_source_bounds() 192 const SkFont& font, SkSpan<const SkGlyphID> glyphIDs, SkPoint origin, SkPoint* buffer) { in draw_text_positions() 243 auto glyphIDs = SkSpan<const SkGlyphID>{it.glyphs(), runSize}; in blobToGlyphRunList() 331 SkSpan<const SkGlyphID> GlyphRunBuilder::textToGlyphIDs( in textToGlyphIDs() 340 return SkSpan<const SkGlyphID>(); in textToGlyphIDs() 343 return SkSpan<const SkGlyphID>((const SkGlyphID*)bytes, byteLength / 2); in textToGlyphIDs() 349 SkSpan<const SkGlyphID> glyphIDs, in makeGlyphRun()
|
/external/skia/modules/skparagraph/tests/ |
D | SkShaperJSONWriter.h | 47 std::function<void(size_t, SkSpan<const char>, SkSpan<const SkGlyphID>)>; 52 SkSpan<const SkGlyphID> glyphIDs, 59 SkSpan<const SkGlyphID> glyphIDs); 62 std::vector<SkGlyphID> fGlyphs;
|
D | SkShaperJSONWriterTest.cpp | 77 std::vector<SkGlyphID> glyphIDs; in DEF_TEST() 81 std::vector<SkGlyphID> glyphIDs; in DEF_TEST() 101 int codePointCount, SkSpan<const char> utf1to1, SkSpan<const SkGlyphID> glyph1to1) { in DEF_TEST() 106 std::vector<SkGlyphID> toCheckGlyphIDs{glyph1to1.begin(), glyph1to1.end()}; in DEF_TEST()
|
D | SkShaperJSONWriter.cpp | 113 SkSpan<const SkGlyphID> glyph1to1) { in commitRunBuffer() 176 SkSpan<const SkGlyphID> glyphIDs, in VisualizeClusters() 194 SkSpan<const SkGlyphID> glyphSpan{&glyphIDs[glyphRangeStart], glyphRangeCount}; in VisualizeClusters() 216 SkSpan<const SkGlyphID> glyphSpan{&glyphIDs[glyphStartIndex], in VisualizeClusters() 230 SkSpan<const SkGlyphID> glyphIDs) { in displayMToN()
|
/external/skia/include/utils/ |
D | SkCustomTypeface.h | 31 void setGlyph(SkGlyphID, float advance, const SkPath&); 32 void setGlyph(SkGlyphID, float advance, sk_sp<SkDrawable>, const SkRect& bounds); 61 GlyphRec& ensureStorage(SkGlyphID);
|
/external/skia/docs/examples/ |
D | Paint_textToGlyphs.cpp | 10 std::vector<SkGlyphID> glyphs; 16 canvas->drawText(&glyphs.front(), glyphs.size() * sizeof(SkGlyphID), 10, 40, paint);
|
/external/skia/src/utils/ |
D | SkCharToGlyphCache.h | 47 void insertCharAndGlyph(int index, SkUnichar, SkGlyphID); 50 void addCharAndGlyph(SkUnichar unichar, SkGlyphID glyph) { in addCharAndGlyph()
|
/external/skia/tools/fonts/ |
D | TestTypeface.h | 51 SkGlyphID glyphForUnichar(SkUnichar charCode) const; 83 SkPath getPath(SkGlyphID glyph); 101 void onCharsToGlyphs(const SkUnichar* chars, int count, SkGlyphID glyphs[]) const override;
|