Home
last modified time | relevance | path

Searched refs:hmtx (Results 1 - 25 of 34) sorted by relevance

12

/third_party/skia/third_party/externals/sfntly/cpp/src/test/
H A 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()
H A Dtest_data.cc41 Tag::glyf, Tag::head, Tag::hhea, Tag::hmtx, Tag::kern,
48 Tag::glyf, Tag::hdmx, Tag::head, Tag::hhea, Tag::hmtx,
H A Dserialization_test.cc78 } else if (TTF_KNOWN_TAGS[i] == Tag::hmtx) { in TestSerialization()
/third_party/skia/third_party/externals/harfbuzz/test/api/
H A 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()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/
H A DHdmxEncoder.java39 HorizontalMetricsTable hmtx = sourceFont.getTable(Tag.hmtx); in encode()
50 ((64 * ppem * hmtx.advanceWidth(j) + unitsPerEm / 2) / unitsPerEm + 32) / 64; in encode()
/third_party/cups-filters/fontembed/
H A Dsfnt.c11 /* reqd. Tables: cmap, head, hhea, hmtx, maxp, name, OS/2, post
353 free(otf->hmtx); in otf_close()
527 int otf_load_more(OTF_FILE *otf) // {{{ - 0 on success => hhea,hmtx,name,[glyf] in otf_load_more()
551 // {{{ read hmtx table in otf_load_more()
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()
555 fprintf(stderr,"Unsupported OTF font / hmtx table \n"); in otf_load_more()
558 if (otf->hmtx) { in otf_load_more()
559 free(otf->hmtx); in otf_load_more()
562 otf->hmtx in otf_load_more()
[all...]
H A 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()
H A Dtest_analyze.c169 if (!otf->hmtx) { in show_hmtx()
170 printf("NOTE: no hmtx table!\n"); in show_hmtx()
173 printf("hmtx (%d):\n",otf->numberOfHMetrics); in show_hmtx()
176 get_USHORT(otf->hmtx+iA*4), in show_hmtx()
177 get_SHORT(otf->hmtx+iA*4+2)); in show_hmtx()
H A Dsfnt.h29 char *hmtx,*name,*cmap; member
H A Dembed_sfnt.c254 // ensure hmtx is there in emb_otf_get_pdf_widths()
255 if (!otf->hmtx) { in emb_otf_get_pdf_widths()
287 // otf->hmtx must be there
299 // ensure hmtx is there in emb_otf_get_pdf_cidwidths()
300 if (!otf->hmtx) { in emb_otf_get_pdf_cidwidths()
486 // need 'fake' gdir table (size,offset=0) in sfnt; loca, glyf can be ommited; hmtx can be omitted for PS>=3011 [/MetricsCount 2]
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/subsetter/
H A DHorizontalMetricsTableSubsetter.java35 super(Tag.hmtx, Tag.hhea); in HorizontalMetricsTableSubsetter()
44 HorizontalMetricsTable origMetrics = font.getTable(Tag.hmtx); in subset()
H A DHorizontalMetricsTableBuilder.java27 * A builder method for the hmtx (horizontal metrics) table. The goal is for this
78 fontBuilder.newTableBuilder(Tag.hmtx, data); in build()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/sample/sflint/
H A DSFLint.java161 HorizontalMetricsTable hmtx = (HorizontalMetricsTable) font.getTable(Tag.hmtx); in lintAdvanceWidths()
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/
H A Dhb-ot-hmtx-table.hh36 * hmtx -- Horizontal Metrics
37 * https://docs.microsoft.com/en-us/typography/opentype/spec/hmtx
323 struct hmtx : hmtxvmtx<hmtx, hhea> { struct
334 struct hmtx_accelerator_t : hmtx::accelerator_t {};
H A Dhb-ot-font.cc41 #include "hb-ot-hmtx-table.hh"
111 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()
H A Dhb-ot-glyf-table.hh35 #include "hb-ot-hmtx-table.hh"
480 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
[all...]
H A Dhb-ot-face-table-list.hh54 HB_OT_ACCELERATOR (OT, hmtx)
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/
H A Dtag.cc30 const int32_t Tag::hmtx = TAG('h', 'm', 't', 'x'); member in sfntly::Tag
91 Tag::hmtx,
H A Dtag.h36 static const int32_t hmtx; member
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/
H A DMetricsTests.java38 HorizontalMetricsTable hmtxTable = font.getTable(Tag.hmtx); in testBasicHmtxValidity()
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/tools/subsetter/
H A DHorizontalMetricsTableBuilderTest.java56 HorizontalMetricsTable hmtxTable = font.getTable(Tag.hmtx); in testHorizontalMetricsTableBuilder()
H A DHintStripTest.java88 HorizontalMetricsTable hmtxTable = dstFont.getTable(Tag.hmtx); in testHorizontalMetrics()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/
H A 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/
H A Dtable.cc95 } else if (tag == Tag::hmtx) { in GetBuilder()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/
H A DTable.java194 } else if (tag == Tag.hmtx) { in getBuilder()

Completed in 12 milliseconds

12