Home
last modified time | relevance | path

Searched refs:hmtxTable (Results 1 – 12 of 12) sorted by relevance

/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/tools/subsetter/
DHorizontalMetricsTableBuilderTest.java56 HorizontalMetricsTable hmtxTable = font.getTable(Tag.hmtx); in testHorizontalMetricsTableBuilder() local
57 assertEquals(3, hmtxTable.numberOfHMetrics()); in testHorizontalMetricsTableBuilder()
58 assertEquals(1, hmtxTable.numberOfLSBs()); in testHorizontalMetricsTableBuilder()
59 assertEquals(123, hmtxTable.advanceWidth(0)); in testHorizontalMetricsTableBuilder()
60 assertEquals(42, hmtxTable.leftSideBearing(0)); in testHorizontalMetricsTableBuilder()
61 assertEquals(123, hmtxTable.advanceWidth(1)); in testHorizontalMetricsTableBuilder()
62 assertEquals(43, hmtxTable.leftSideBearing(1)); in testHorizontalMetricsTableBuilder()
63 assertEquals(789, hmtxTable.advanceWidth(2)); in testHorizontalMetricsTableBuilder()
64 assertEquals(44, hmtxTable.leftSideBearing(2)); in testHorizontalMetricsTableBuilder()
65 assertEquals(789, hmtxTable.advanceWidth(3)); in testHorizontalMetricsTableBuilder()
[all …]
DHintStripTest.java88 HorizontalMetricsTable hmtxTable = dstFont.getTable(Tag.hmtx); in testHorizontalMetrics() local
89 assertEquals(1229, hmtxTable.advanceWidth(0)); in testHorizontalMetrics()
90 assertEquals(193, hmtxTable.leftSideBearing(0)); in testHorizontalMetrics()
91 assertEquals(1182, hmtxTable.advanceWidth(67)); in testHorizontalMetrics()
92 assertEquals(393, hmtxTable.leftSideBearing(67)); in testHorizontalMetrics()
93 assertEquals(1139, hmtxTable.advanceWidth(68)); in testHorizontalMetrics()
94 assertEquals(94, hmtxTable.leftSideBearing(68)); in testHorizontalMetrics()
95 assertEquals(1139, hmtxTable.advanceWidth(162)); in testHorizontalMetrics()
96 assertEquals(94, hmtxTable.leftSideBearing(162)); in testHorizontalMetrics()
DRenumberingSubsetTest.java98 HorizontalMetricsTable hmtxTable = dstFont.getTable(Tag.hmtx); in testHorizontalMetrics() local
99 assertEquals(1229, hmtxTable.advanceWidth(0)); in testHorizontalMetrics()
100 assertEquals(193, hmtxTable.leftSideBearing(0)); in testHorizontalMetrics()
101 assertEquals(1182, hmtxTable.advanceWidth(1)); in testHorizontalMetrics()
102 assertEquals(393, hmtxTable.leftSideBearing(1)); in testHorizontalMetrics()
103 assertEquals(1139, hmtxTable.advanceWidth(2)); in testHorizontalMetrics()
104 assertEquals(94, hmtxTable.leftSideBearing(2)); in testHorizontalMetrics()
105 assertEquals(1139, hmtxTable.advanceWidth(3)); in testHorizontalMetrics()
106 assertEquals(94, hmtxTable.leftSideBearing(3)); in testHorizontalMetrics()
/third_party/flutter/skia/third_party/externals/sfntly/java/test/com/google/typography/font/tools/subsetter/
DHorizontalMetricsTableBuilderTest.java56 HorizontalMetricsTable hmtxTable = font.getTable(Tag.hmtx); in testHorizontalMetricsTableBuilder() local
57 assertEquals(3, hmtxTable.numberOfHMetrics()); in testHorizontalMetricsTableBuilder()
58 assertEquals(1, hmtxTable.numberOfLSBs()); in testHorizontalMetricsTableBuilder()
59 assertEquals(123, hmtxTable.advanceWidth(0)); in testHorizontalMetricsTableBuilder()
60 assertEquals(42, hmtxTable.leftSideBearing(0)); in testHorizontalMetricsTableBuilder()
61 assertEquals(123, hmtxTable.advanceWidth(1)); in testHorizontalMetricsTableBuilder()
62 assertEquals(43, hmtxTable.leftSideBearing(1)); in testHorizontalMetricsTableBuilder()
63 assertEquals(789, hmtxTable.advanceWidth(2)); in testHorizontalMetricsTableBuilder()
64 assertEquals(44, hmtxTable.leftSideBearing(2)); in testHorizontalMetricsTableBuilder()
65 assertEquals(789, hmtxTable.advanceWidth(3)); in testHorizontalMetricsTableBuilder()
[all …]
DHintStripTest.java88 HorizontalMetricsTable hmtxTable = dstFont.getTable(Tag.hmtx); in testHorizontalMetrics() local
89 assertEquals(1229, hmtxTable.advanceWidth(0)); in testHorizontalMetrics()
90 assertEquals(193, hmtxTable.leftSideBearing(0)); in testHorizontalMetrics()
91 assertEquals(1182, hmtxTable.advanceWidth(67)); in testHorizontalMetrics()
92 assertEquals(393, hmtxTable.leftSideBearing(67)); in testHorizontalMetrics()
93 assertEquals(1139, hmtxTable.advanceWidth(68)); in testHorizontalMetrics()
94 assertEquals(94, hmtxTable.leftSideBearing(68)); in testHorizontalMetrics()
95 assertEquals(1139, hmtxTable.advanceWidth(162)); in testHorizontalMetrics()
96 assertEquals(94, hmtxTable.leftSideBearing(162)); in testHorizontalMetrics()
DRenumberingSubsetTest.java98 HorizontalMetricsTable hmtxTable = dstFont.getTable(Tag.hmtx); in testHorizontalMetrics() local
99 assertEquals(1229, hmtxTable.advanceWidth(0)); in testHorizontalMetrics()
100 assertEquals(193, hmtxTable.leftSideBearing(0)); in testHorizontalMetrics()
101 assertEquals(1182, hmtxTable.advanceWidth(1)); in testHorizontalMetrics()
102 assertEquals(393, hmtxTable.leftSideBearing(1)); in testHorizontalMetrics()
103 assertEquals(1139, hmtxTable.advanceWidth(2)); in testHorizontalMetrics()
104 assertEquals(94, hmtxTable.leftSideBearing(2)); in testHorizontalMetrics()
105 assertEquals(1139, hmtxTable.advanceWidth(3)); in testHorizontalMetrics()
106 assertEquals(94, hmtxTable.leftSideBearing(3)); in testHorizontalMetrics()
/third_party/icu/icu4c/source/test/letest/
DFontObject.cpp20 headTable(NULL), hmtxTable(NULL), numGlyphs(0), numOfLongHorMetrics(0), file(NULL) in FontObject()
54 delete[] hmtxTable; in ~FontObject()
211 if (hmtxTable == NULL) { in getGlyphAdvance()
226 hmtxTable = (HMTXTable *) readTable(hmtxTag, &length); in getGlyphAdvance()
239 return SWAPW(hmtxTable->hMetrics[index].advanceWidth); in getGlyphAdvance()
DFontObject.h228 HMTXTable *hmtxTable; variable
/third_party/icu/icu4c/source/test/perf/leperf/
DFontObject.cpp24 headTable(NULL), hmtxTable(NULL), numGlyphs(0), numOfLongHorMetrics(0), file(NULL) in FontObject()
58 delete[] hmtxTable; in ~FontObject()
215 if (hmtxTable == NULL) { in getGlyphAdvance()
230 hmtxTable = (HMTXTable *) readTable(hmtxTag, &length); in getGlyphAdvance()
243 return SWAPW(hmtxTable->hMetrics[index].advanceWidth); in getGlyphAdvance()
DFontObject.h232 HMTXTable *hmtxTable; variable
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/
DMetricsTests.java38 HorizontalMetricsTable hmtxTable = font.getTable(Tag.hmtx); in testBasicHmtxValidity() local
41 int width = hmtxTable.advanceWidth(gid); in testBasicHmtxValidity()
/third_party/flutter/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/
DMetricsTests.java38 HorizontalMetricsTable hmtxTable = font.getTable(Tag.hmtx); in testBasicHmtxValidity() local
41 int width = hmtxTable.advanceWidth(gid); in testBasicHmtxValidity()