/third_party/skia/third_party/externals/sfntly/cpp/src/test/ |
H A D | verify_hmtx.cc | 50 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 D | test_data.cc | 41 Tag::glyf, Tag::head, Tag::hhea, Tag::hmtx, Tag::kern, 48 Tag::glyf, Tag::hdmx, Tag::head, Tag::hhea, Tag::hmtx,
|
H A D | serialization_test.cc | 78 } else if (TTF_KNOWN_TAGS[i] == Tag::hmtx) { in TestSerialization()
|
/third_party/skia/third_party/externals/harfbuzz/test/api/ |
H A D | test-subset-drop-tables.c | 49 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 D | HdmxEncoder.java | 39 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 D | sfnt.c | 11 /* 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 D | sfnt_int.h | 65 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 D | test_analyze.c | 169 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 D | sfnt.h | 29 char *hmtx,*name,*cmap; member
|
H A D | embed_sfnt.c | 254 // 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 D | HorizontalMetricsTableSubsetter.java | 35 super(Tag.hmtx, Tag.hhea); in HorizontalMetricsTableSubsetter() 44 HorizontalMetricsTable origMetrics = font.getTable(Tag.hmtx); in subset()
|
H A D | HorizontalMetricsTableBuilder.java | 27 * 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 D | SFLint.java | 161 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 D | hb-ot-hmtx-table.hh | 36 * 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 D | hb-ot-font.cc | 41 #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 D | hb-ot-glyf-table.hh | 35 #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 D | hb-ot-face-table-list.hh | 54 HB_OT_ACCELERATOR (OT, hmtx)
|
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/ |
H A D | tag.cc | 30 const int32_t Tag::hmtx = TAG('h', 'm', 't', 'x'); member in sfntly::Tag 91 Tag::hmtx,
|
H A D | tag.h | 36 static const int32_t hmtx; member
|
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/ |
H A D | MetricsTests.java | 38 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 D | HorizontalMetricsTableBuilderTest.java | 56 HorizontalMetricsTable hmtxTable = font.getTable(Tag.hmtx); in testHorizontalMetricsTableBuilder()
|
H A D | HintStripTest.java | 88 HorizontalMetricsTable hmtxTable = dstFont.getTable(Tag.hmtx); in testHorizontalMetrics()
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/ |
H A D | Tag.java | 42 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 D | table.cc | 95 } else if (tag == Tag::hmtx) { in GetBuilder()
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/ |
H A D | Table.java | 194 } else if (tag == Tag.hmtx) { in getBuilder()
|