/third_party/skia/tests/ |
H A D | PDFGlyphsToUnicodeTest.cpp | 37 SkTDArray<SkUnichar> glyphToUnicode; in DEF_TEST() local 41 glyphToUnicode.push_back(0); // 0 in DEF_TEST() 42 glyphToUnicode.push_back(0); // 1 in DEF_TEST() 43 glyphToUnicode.push_back(0); // 2 in DEF_TEST() 45 glyphToUnicode.push_back(0x20); // 3 in DEF_TEST() 47 glyphToUnicode.push_back(0x25); // 4 in DEF_TEST() 49 glyphToUnicode.push_back(0x27); // 5 in DEF_TEST() 51 glyphToUnicode.push_back(0x28); // 6 in DEF_TEST() 53 glyphToUnicode.push_back(0x29); // 7 in DEF_TEST() 55 glyphToUnicode in DEF_TEST() [all...] |
/third_party/skia/src/pdf/ |
H A D | SkPDFMakeToUnicodeCmap.cpp | 152 void SkPDFAppendCmapSections(const SkUnichar* glyphToUnicode, in SkPDFAppendCmapSections() argument 181 glyphToUnicode[gid] == in SkPDFAppendCmapSections() 196 currentRangeEntry.fUnicode = glyphToUnicode[gid]; in SkPDFAppendCmapSections() 209 const SkUnichar* glyphToUnicode, 216 SkPDFAppendCmapSections(glyphToUnicode, subset, &cmap, multiByteGlyphs,
|
H A D | SkPDFMakeToUnicodeCmap.h | 14 const SkUnichar* glyphToUnicode, 21 void SkPDFAppendCmapSections(const SkUnichar* glyphToUnicode,
|
H A D | SkPDFFont.cpp | 392 const std::vector<SkUnichar>& glyphToUnicode = in emit_subset_type0() local 394 SkASSERT(SkToSizeT(font.typeface()->countGlyphs()) == glyphToUnicode.size()); in emit_subset_type0() 396 SkPDFMakeToUnicodeCmap(glyphToUnicode.data(), in emit_subset_type0() 653 const std::vector<SkUnichar>& glyphToUnicode = SkPDFFont::GetUnicodeMap(typeface, doc); in emit_subset_type3() local 654 SkASSERT(glyphToUnicode.size() == SkToSizeT(typeface->countGlyphs())); in emit_subset_type3() 655 auto toUnicodeCmap = SkPDFMakeToUnicodeCmap(glyphToUnicode.data(), in emit_subset_type3()
|
H A D | SkPDFDevice.cpp | 730 static SkUnichar map_glyph(const std::vector<SkUnichar>& glyphToUnicode, SkGlyphID glyph) { in map_glyph() argument 731 return glyph < glyphToUnicode.size() ? glyphToUnicode[SkToInt(glyph)] : -1; in map_glyph() 842 const std::vector<SkUnichar>& glyphToUnicode = SkPDFFont::GetUnicodeMap(typeface, fDocument); in internalDrawGlyphRun() local 901 unichar != map_glyph(glyphToUnicode, glyphIDs[index])) // test single Unichar map in internalDrawGlyphRun()
|
/third_party/skia/src/ports/ |
H A D | SkTypeface_win_dw.cpp | 438 SkUnichar* glyphToUnicode) 456 if (0 < glyph && glyphToUnicode[glyph] == 0) { 457 glyphToUnicode[glyph] = c + i; // Always use lowest-index unichar. 464 void DWriteFontTypeface::getGlyphToUnicodeMap(SkUnichar* glyphToUnicode) const { 467 sk_bzero(glyphToUnicode, sizeof(SkUnichar) * numGlyphs); 480 glyph_to_unicode_map(face1, ranges[i], &remainingGlyphCount, numGlyphs, glyphToUnicode); 483 glyph_to_unicode_map(face, {0, 0x10FFFF}, &remainingGlyphCount, numGlyphs, glyphToUnicode);
|
H A D | SkTypeface_mac_ct.cpp | 464 SkUnichar* glyphToUnicode, 490 if (glyphToUnicode[glyphs[0]] < 0x20) { 491 glyphToUnicode[glyphs[0]] = codepoint; 499 SkUnichar* glyphToUnicode) { 500 sk_bzero(glyphToUnicode, sizeof(SkUnichar) * glyphCount); 503 populate_glyph_to_unicode_slow(ctFont, glyphCount, glyphToUnicode); 519 get_plane_glyph_map(bits, ctFont, glyphCount, glyphToUnicode, 0); 541 get_plane_glyph_map(bits, ctFont, glyphCount, glyphToUnicode, planeIndex);
|
H A D | SkTypeface_win_dw.h | 129 void getGlyphToUnicodeMap(SkUnichar* glyphToUnicode) const override;
|
H A D | SkFontHost_win.cpp | 390 SkUnichar* glyphToUnicode) { in populate_glyph_to_unicode() 391 sk_bzero(glyphToUnicode, sizeof(SkUnichar) * glyphCount); in populate_glyph_to_unicode() 426 if (glyph[j] != 0xFFFF && glyph[j] < glyphCount && glyphToUnicode[glyph[j]] == 0) { in populate_glyph_to_unicode() 427 glyphToUnicode[glyph[j]] = chars[j]; in populate_glyph_to_unicode() 389 populate_glyph_to_unicode(HDC fontHdc, const unsigned glyphCount, SkUnichar* glyphToUnicode) populate_glyph_to_unicode() argument
|
/third_party/skia/tools/fonts/ |
H A D | RandomScalerContext.cpp | 157 void SkRandomTypeface::getGlyphToUnicodeMap(SkUnichar* glyphToUnicode) const { in getGlyphToUnicodeMap() 158 fProxy->getGlyphToUnicodeMap(glyphToUnicode); in getGlyphToUnicodeMap()
|
H A D | TestTypeface.cpp | 113 void TestTypeface::getGlyphToUnicodeMap(SkUnichar* glyphToUnicode) const { in getGlyphToUnicodeMap() 116 glyphToUnicode[gid] = SkTo<SkUnichar>(fTestFont->fCharCodes[gid]); in getGlyphToUnicodeMap()
|
H A D | TestTypeface.h | 76 void getGlyphToUnicodeMap(SkUnichar* glyphToUnicode) const override;
|
H A D | TestSVGTypeface.cpp | 134 void TestSVGTypeface::getGlyphToUnicodeMap(SkUnichar* glyphToUnicode) const { in getGlyphToUnicodeMap() 138 glyphToUnicode[g] = c; in getGlyphToUnicodeMap()
|
/third_party/skia/src/utils/ |
H A D | SkCustomTypeface.cpp | 57 void getGlyphToUnicodeMap(SkUnichar* glyphToUnicode) const override; 154 void SkUserTypeface::getGlyphToUnicodeMap(SkUnichar* glyphToUnicode) const { in getGlyphToUnicodeMap() 156 glyphToUnicode[gid] = SkTo<SkUnichar>(gid); in getGlyphToUnicodeMap()
|