Home
last modified time | relevance | path

Searched refs:hmtx (Results 1 – 25 of 49) sorted by relevance

12

/third_party/skia/third_party/externals/sfntly/cpp/src/test/
Dverify_hmtx.cc50 HorizontalMetricsTablePtr hmtx = down_cast<HorizontalMetricsTable*>(table); in VerifyHMTX() local
51 if (hmtx == NULL) { in VerifyHMTX()
55 EXPECT_EQ(hmtx->NumberOfHMetrics(), HMTX_ENTRIES_COUNT); in VerifyHMTX()
56 EXPECT_EQ(hmtx->NumberOfLSBs(), HMTX_LSB_COUNT); in VerifyHMTX()
59 EXPECT_EQ(hmtx->AdvanceWidth(i), HMTX_ENTRIES[i].advance_width_); in VerifyHMTX()
60 EXPECT_EQ(hmtx->LeftSideBearing(i), HMTX_ENTRIES[i].lsb_); in VerifyHMTX()
64 EXPECT_EQ(hmtx->AdvanceWidth(HMTX_ENTRIES_COUNT), in VerifyHMTX()
66 EXPECT_EQ(hmtx->LeftSideBearing(HMTX_ENTRIES_COUNT), HMTX_ENTRIES[0].lsb_); in VerifyHMTX()
Dtest_data.cc41 Tag::glyf, Tag::head, Tag::hhea, Tag::hmtx, Tag::kern,
48 Tag::glyf, Tag::hdmx, Tag::head, Tag::hhea, Tag::hmtx,
Dserialization_test.cc78 } else if (TTF_KNOWN_TAGS[i] == Tag::hmtx) { in TestSerialization()
/third_party/skia/third_party/externals/harfbuzz/test/api/
Dtest-subset-drop-tables.c49 hb_blob_t *hmtx = hb_face_reference_table (subset, HB_TAG ('h', 'm', 't', 'x')); in test_subset_drop_tables() local
52 g_assert (!hb_blob_get_length (hmtx)); in test_subset_drop_tables()
55 hb_blob_destroy (hmtx); in test_subset_drop_tables()
Dmeson.build41 'test-subset-hmtx.c',
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/
DHdmxEncoder.java39 HorizontalMetricsTable hmtx = sourceFont.getTable(Tag.hmtx); in encode() local
50 ((64 * ppem * hmtx.advanceWidth(j) + unitsPerEm / 2) / unitsPerEm + 32) / 64; in encode()
/third_party/cups-filters/fontembed/
Dsfnt.c353 free(otf->hmtx); in otf_close()
552 char *hmtx=otf_get_table(otf,OTF_TAG('h','m','t','x'),&len); in otf_load_more() local
553 if ( (!hmtx)|| in otf_load_more()
558 if (otf->hmtx) { in otf_load_more()
559 free(otf->hmtx); in otf_load_more()
562 otf->hmtx=hmtx; in otf_load_more()
649 if (!otf->hmtx) { in otf_get_width()
659 return get_USHORT(otf->hmtx+(otf->numberOfHMetrics-1)*2); in otf_get_width()
662 return get_USHORT(otf->hmtx+gid*4); in otf_get_width()
Dsfnt_int.h65 return get_USHORT(otf->hmtx+(otf->numberOfHMetrics-1)*4); in get_width_fast()
67 return get_USHORT(otf->hmtx+gid*4); in get_width_fast()
Dtest_analyze.c169 if (!otf->hmtx) { in show_hmtx()
176 get_USHORT(otf->hmtx+iA*4), in show_hmtx()
177 get_SHORT(otf->hmtx+iA*4+2)); in show_hmtx()
Dsfnt.h29 char *hmtx,*name,*cmap; member
Dembed_sfnt.c255 if (!otf->hmtx) { in emb_otf_get_pdf_widths()
300 if (!otf->hmtx) { in emb_otf_get_pdf_cidwidths()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/subsetter/
DHorizontalMetricsTableSubsetter.java35 super(Tag.hmtx, Tag.hhea); in HorizontalMetricsTableSubsetter()
44 HorizontalMetricsTable origMetrics = font.getTable(Tag.hmtx); in subset()
DHorizontalMetricsTableBuilder.java78 fontBuilder.newTableBuilder(Tag.hmtx, data); in build()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/sample/sflint/
DSFLint.java161 HorizontalMetricsTable hmtx = (HorizontalMetricsTable) font.getTable(Tag.hmtx); in lintAdvanceWidths() local
162 for (int i = 0; i < hmtx.numberOfHMetrics(); i++) { in lintAdvanceWidths()
163 int advanceWidth = hmtx.hMetricAdvanceWidth(i); in lintAdvanceWidths()
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-ot-hmtx-table.hh323 struct hmtx : hmtxvmtx<hmtx, hhea> { struct
334 struct hmtx_accelerator_t : hmtx::accelerator_t {};
Dhb-ot-font.cc111 const OT::hmtx_accelerator_t &hmtx = *ot_face->hmtx; in hb_ot_get_glyph_h_advances() local
115 *first_advance = font->em_scale_x (hmtx.get_advance (*first_glyph, font)); in hb_ot_get_glyph_h_advances()
Dhb-ot-glyf-table.hh480 extents->x_bearing = font->em_scale_x (glyf_accelerator.hmtx->get_side_bearing (gid)); in get_extents()
795 int h_delta = (int) header->xMin - glyf_accelerator.hmtx->get_side_bearing (gid); in get_points()
797 unsigned h_adv = glyf_accelerator.hmtx->get_advance (gid); in get_points()
912 hmtx = nullptr; in init()
926 hmtx = face->table.hmtx; in init()
1040 return is_vertical ? vmtx->get_advance (gid) : hmtx->get_advance (gid); in get_advance_var()
1056 return is_vertical ? vmtx->get_side_bearing (gid) : hmtx->get_side_bearing (gid); in get_side_bearing_var()
1252 const hmtx_accelerator_t *hmtx; member
Dhb-ot-face-table-list.hh54 HB_OT_ACCELERATOR (OT, hmtx)
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/
Dtag.cc30 const int32_t Tag::hmtx = TAG('h', 'm', 't', 'x'); member in sfntly::Tag
91 Tag::hmtx,
Dtag.h36 static const int32_t hmtx; member
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/
DMetricsTests.java38 HorizontalMetricsTable hmtxTable = font.getTable(Tag.hmtx); in testBasicHmtxValidity()
/third_party/skia/third_party/externals/harfbuzz/test/api/fonts/
DREADME3 Inconsolata-Regular.abc.widerc.ttf has the hmtx width of "c" set to 600; everything else is 500. Su…
/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()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/
DTag.java42 public static final int hmtx = Tag.intValue(new byte[]{'h', 'm', 't', 'x'}); field in Tag
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/table/
Dtable.cc95 } else if (tag == Tag::hmtx) { in GetBuilder()

12