Home
last modified time | relevance | path

Searched refs:numGlyphs (Results 1 – 25 of 84) sorted by relevance

1234

/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/truetype/
DLocaTable.java38 private int numGlyphs; field in LocaTable
40 private LocaTable(Header header, ReadableFontData data, IndexToLocFormat version, int numGlyphs) { in LocaTable() argument
43 this.numGlyphs = numGlyphs; in LocaTable()
55 public int numGlyphs() { in numGlyphs() method in LocaTable
56 return this.numGlyphs; in numGlyphs()
70 if (glyphId < 0 || glyphId >= this.numGlyphs) { in glyphOffset()
83 if (glyphId < 0 || glyphId >= this.numGlyphs) { in glyphLength()
97 return this.numGlyphs + 1; in numLocas()
110 if (index > this.numGlyphs) { in loca()
142 if (this.index <= numGlyphs) { in hasNext()
[all …]
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/core/
DHorizontalDeviceMetricsTable.java32 private int numGlyphs; field in HorizontalDeviceMetricsTable
52 private HorizontalDeviceMetricsTable(Header header, ReadableFontData data, int numGlyphs) { in HorizontalDeviceMetricsTable() argument
54 this.numGlyphs = numGlyphs; in HorizontalDeviceMetricsTable()
86 if (recordIx < 0 || recordIx >= numRecords() || glyphNum < 0 || glyphNum >= numGlyphs) { in width()
98 private int numGlyphs = -1; field in HorizontalDeviceMetricsTable.Builder
114 return new HorizontalDeviceMetricsTable(this.header(), data, this.numGlyphs); in subBuildTable()
117 public void setNumGlyphs(int numGlyphs) { in setNumGlyphs() argument
118 if (numGlyphs < 0) { in setNumGlyphs()
121 this.numGlyphs = numGlyphs; in setNumGlyphs()
122 this.table().numGlyphs = numGlyphs; in setNumGlyphs()
DHorizontalMetricsTable.java33 private int numGlyphs; field in HorizontalMetricsTable
57 Header header, ReadableFontData data, int numHMetrics, int numGlyphs) { in HorizontalMetricsTable() argument
60 this.numGlyphs = numGlyphs; in HorizontalMetricsTable()
68 return this.numGlyphs - this.numHMetrics; in numberOfLSBs()
123 private int numGlyphs = -1; field in HorizontalMetricsTable.Builder
146 return new HorizontalMetricsTable(this.header(), data, this.numHMetrics, this.numGlyphs); in subBuildTable()
157 public void setNumGlyphs(int numGlyphs) { in setNumGlyphs() argument
158 if (numGlyphs < 0) { in setNumGlyphs()
161 this.numGlyphs = numGlyphs; in setNumGlyphs()
162 this.table().numGlyphs = numGlyphs; in setNumGlyphs()
DMaximumProfileTable.java39 numGlyphs(4), enumConstant
70 public int numGlyphs() { in numGlyphs() method in MaximumProfileTable
71 return this.data.readUShort(Offset.numGlyphs.offset); in numGlyphs()
161 public int numGlyphs() { in numGlyphs() method in MaximumProfileTable.Builder
162 return this.internalReadData().readUShort(Offset.numGlyphs.offset); in numGlyphs()
165 public void setNumGlyphs(int numGlyphs) { in setNumGlyphs() argument
166 this.internalWriteData().writeUShort(Offset.numGlyphs.offset, numGlyphs); in setNumGlyphs()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/bitmap/
DIndexSubTableFormat5.java44 private static int numGlyphs(ReadableFontData data, int tableOffset) { in numGlyphs() method in IndexSubTableFormat5
45 int numGlyphs = data.readULongAsInt(tableOffset + Offset.indexSubTable5_numGlyphs.offset); in numGlyphs() local
46 return numGlyphs; in numGlyphs()
59 public int numGlyphs() { in numGlyphs() method in IndexSubTableFormat5
60 return IndexSubTableFormat5.numGlyphs(this.data, 0); in numGlyphs()
68 FontData.DataSize.USHORT.size(), this.numGlyphs(), glyphId); in glyphStartOffset()
103 int numGlyphs = IndexSubTableFormat5.numGlyphs(data, indexSubTableOffset); in dataLength() local
104 return Offset.indexSubTable5_glyphArray.offset + numGlyphs * FontData.DataSize.USHORT.size(); in dataLength()
140 public int numGlyphs() { in numGlyphs() method in IndexSubTableFormat5.Builder
180 int numGlyphs = IndexSubTableFormat5.numGlyphs(data, 0); in initialize() local
[all …]
DIndexSubTableFormat4.java41 private static int numGlyphs(ReadableFontData data, int tableOffset) { in numGlyphs() method in IndexSubTableFormat4
42 int numGlyphs = data.readULongAsInt(tableOffset + Offset.indexSubTable4_numGlyphs.offset); in numGlyphs() local
43 return numGlyphs; in numGlyphs()
47 public int numGlyphs() { in numGlyphs() method in IndexSubTableFormat4
48 return IndexSubTableFormat4.numGlyphs(this.data, 0); in numGlyphs()
78 Offset.codeOffsetPairLength.offset, this.numGlyphs(), glyphId); in findCodeOffsetPair()
148 int numGlyphs = IndexSubTableFormat4.numGlyphs(data, indexSubTableOffset); in dataLength() local
149 return Offset.indexSubTable4_glyphArray.offset + numGlyphs in dataLength()
166 public int numGlyphs() { in numGlyphs() method in IndexSubTableFormat4.Builder
211 int numPairs = IndexSubTableFormat4.numGlyphs(data, 0) + 1; in initialize()
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/
DGlyphEditingTests.java77 assertEquals(locaSlots - 1, loca.numGlyphs()); in testEditLocaTable()
78 for (int glyphId = 0; glyphId < loca.numGlyphs(); glyphId++) { in testEditLocaTable()
104 int numGlyphs = locaTableBuilder.numGlyphs(); in testRemoveOneGlyph() local
105 assertEquals(numLocas, numGlyphs + 1); in testRemoveOneGlyph()
116 maxpTableBuilder.setNumGlyphs(locaTableBuilder.numGlyphs()); in testRemoveOneGlyph()
146 assertEquals(locaTable.numGlyphs(), numGlyphs - 1); in testRemoveOneGlyph()
167 int lastGlyphId = locaTableBuilder.numGlyphs() - 1; in testClearAllGlyphs()
/third_party/cups-filters/fontembed/
Dsfnt_subset.c85 assert(sub_gid<otf->numGlyphs); in otf_subset_glyf()
129 for (iA=0,b=0,c=1;iA<otf->numGlyphs;iA++,c<<=1) { in otf_subset()
152 int locaSize=(otf->numGlyphs+1)*(otf->indexToLocFormat+1)*2; in otf_subset()
165 for (iA=0,b=0,c=1;iA<otf->numGlyphs;iA++,c<<=1) { in otf_subset()
188 set_USHORT(new_loca+otf->numGlyphs*2,offset/2); in otf_subset()
190 set_ULONG(new_loca+otf->numGlyphs*4,offset); in otf_subset()
314 for (iA=0,b=0,c=1;iA<otf->numGlyphs;iA++,c<<=1) {
333 for (iA=0,b=0,c=1;iA<otf->numGlyphs;iA++,c<<=1) {
Dtest_analyze.c144 for (iA=0;iA<otf->numGlyphs;iA++) { in show_glyf()
158 …printf("numGlyf(nonnull): %d(%d), composites: %d\n",otf->numGlyphs,otf->numGlyphs-zeroGlyf,compGly… in show_glyf()
179 printf(" (last is repeated for the remaining %d glyphs)\n",otf->numGlyphs-otf->numberOfHMetrics); in show_hmtx()
219 printf("num glyphs: %d\n",otf->numGlyphs); in main()
Dsfnt.c251 otf->numGlyphs=get_USHORT(maxp+4); in otf_do_load()
257 otf->numGlyphs=get_USHORT(maxp+4); in otf_do_load()
471 (((len+3)&~3)!=((((otf->numGlyphs+1)*(otf->indexToLocFormat+1)*2)+3)&~3)) ) { in otf_load_glyf()
479 otf->glyphOffsets=malloc((otf->numGlyphs+1)*sizeof(unsigned int)); in otf_load_glyf()
485 for (iA=0;iA<=otf->numGlyphs;iA++) { in otf_load_glyf()
489 for (iA=0;iA<=otf->numGlyphs;iA++) { in otf_load_glyf()
494 if (otf->glyphOffsets[otf->numGlyphs]>otf->glyfTable->length) { in otf_load_glyf()
502 for (iA=1;iA<=otf->numGlyphs;iA++) { in otf_load_glyf()
554 (len!=otf->numberOfHMetrics*2+otf->numGlyphs*2) ) { in otf_load_more()
644 if (gid>=otf->numGlyphs) { in otf_get_width()
[all …]
Dembed.c90 int numGlyphs=0; in emb_new() local
98 numGlyphs=ret->font->sfnt->numGlyphs; // TODO in emb_new()
165 ret->subset=bitset_new(numGlyphs); in emb_new()
Dembed_sfnt.c101 assert( (post_version!=0x00020000)||(len>=34+2*otf->numGlyphs) ); in emb_otf_get_pdf_fontdescr()
102 assert( (post_version!=0x00025000)||(len==35+otf->numGlyphs) ); in emb_otf_get_pdf_fontdescr()
104 assert( (post_version!=0x00020000)||(get_USHORT(post+32)==otf->numGlyphs) ); // v4? in emb_otf_get_pdf_fontdescr()
272 if (gid>=otf->numGlyphs) { in emb_otf_get_pdf_widths()
309 return emb_pdf_fw_cidwidths(glyphs,otf->numGlyphs,dw,emb_otf_pdf_glyphwidth,otf); in emb_otf_get_pdf_cidwidths()
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-ot-maxp-table.hh76 unsigned int get_num_glyphs () const { return numGlyphs; } in get_num_glyphs()
80 numGlyphs = count; in set_num_glyphs()
103 maxp_prime->numGlyphs = c->plan->num_output_glyphs (); in subset()
131 HBUINT16 numGlyphs; member
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/
DHdmxEncoder.java44 int numGlyphs = maxp.numGlyphs(); in encode() local
48 for (int j = 0; j < numGlyphs; j++) { in encode()
/third_party/skia/src/sfnt/
DSkOTTable_maxp_CFF.h20 SK_OT_USHORT numGlyphs; member
27 static_assert(offsetof(SkOTTableMaximumProfile_CFF, numGlyphs) == 4, "SkOTTableMaximumProfile_CFF_n…
DSkOTTable_EBLC.h121 SK_OT_ULONG numGlyphs; member
133 SK_OT_ULONG numGlyphs; member
/third_party/icu/icu4c/source/test/letest/
DFontObject.cpp20 headTable(NULL), hmtxTable(NULL), numGlyphs(0), numOfLongHorMetrics(0), file(NULL) in FontObject()
219 numGlyphs = SWAPW(maxpTable->numGlyphs); in getGlyphAdvance()
231 if (glyph >= numGlyphs) { in getGlyphAdvance()
/third_party/icu/icu4c/source/test/perf/leperf/
DFontObject.cpp24 headTable(NULL), hmtxTable(NULL), numGlyphs(0), numOfLongHorMetrics(0), file(NULL) in FontObject()
223 numGlyphs = SWAPW(maxpTable->numGlyphs); in getGlyphAdvance()
235 if (glyph >= numGlyphs) { in getGlyphAdvance()
DFontObject.h138 le_uint16 numGlyphs; member
233 le_uint16 numGlyphs; variable
/third_party/skia/src/ports/
DSkTypeface_win_dw.cpp437 UINT32* remainingGlyphCount, UINT32 numGlyphs, in glyph_to_unicode_map() argument
453 if (glyph >= numGlyphs) { in glyph_to_unicode_map()
466 UINT32 numGlyphs = face->GetGlyphCount(); in getGlyphToUnicodeMap() local
467 sk_bzero(glyphToUnicode, sizeof(SkUnichar) * numGlyphs); in getGlyphToUnicodeMap()
468 UINT32 remainingGlyphCount = numGlyphs; in getGlyphToUnicodeMap()
480 glyph_to_unicode_map(face1, ranges[i], &remainingGlyphCount, numGlyphs, glyphToUnicode); in getGlyphToUnicodeMap()
483 glyph_to_unicode_map(face, {0, 0x10FFFF}, &remainingGlyphCount, numGlyphs, glyphToUnicode); in getGlyphToUnicodeMap()
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/tools/subsetter/
DHintStripTest.java71 assertEquals(938, maxpTable.numGlyphs()); in testNumGlyphs()
74 assertEquals(938, locaTable.numGlyphs()); in testNumGlyphs()
138 assertEquals(2, composite.numGlyphs()); in testCompositeGlyph()
DRenumberingSubsetTest.java81 assertEquals(4, maxpTable.numGlyphs()); in testNumGlyphs()
84 assertEquals(4, locaTable.numGlyphs()); in testNumGlyphs()
163 assertEquals(2, composite.numGlyphs()); in testCompositeGlyph()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/fontinfo/
DFontInfo.java474 public static int numGlyphs(Font font) { in numGlyphs() method in FontInfo
475 return ((MaximumProfileTable) FontUtils.getTable(font, Tag.maxp)).numGlyphs(); in numGlyphs()
503 for (int i = 0; i < locaTable.numGlyphs(); i++) { in listGlyphDimensionBounds()
542 for (int i = 0; i < locaTable.numGlyphs(); i++) { in hintingSize()
572 for (int i = 0; i < locaTable.numGlyphs(); i++) { in listSubglyphFrequency()
578 for (int j = 0; j < cGlyph.numGlyphs(); j++) { in listSubglyphFrequency()
624 for (int i = 0; i < locaTable.numGlyphs(); i++) { in listUnmappedGlyphs()
/third_party/skia/third_party/externals/freetype/src/sfnt/
Dttpost.c183 if ( num_glyphs > face->max_profile.numGlyphs || in load_format_20()
321 if ( num_glyphs > face->max_profile.numGlyphs || in load_format_25()
492 if ( idx >= (FT_UInt)face->max_profile.numGlyphs ) in tt_face_get_ps_name()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/sample/sflint/
DSFLint.java121 int nGlyphs = loca.numGlyphs(); in lintWindowsClipping()
182 for (int i = 0; i < glyph.numGlyphs(); i++) { in lintCompositeGlyph()
200 int nGlyphs = loca.numGlyphs(); in lintAllGlyphs()

1234