Home
last modified time | relevance | path

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

12

/external/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()
/external/harfbuzz_ng/test/api/
Dtest-subset-drop-tables.c48 hb_blob_t *hmtx = hb_face_reference_table (subset, HB_TAG ('h', 'm', 't', 'x')); in test_subset_drop_tables() local
51 g_assert (!hb_blob_get_length (hmtx)); in test_subset_drop_tables()
54 hb_blob_destroy (hmtx); in test_subset_drop_tables()
DMakefile.am48 test-subset-hmtx \
/external/fonttools/Tests/subset/
Dsubset_test.py595 hmtx = subsetfont["hmtx"]
596 self.assertEqual(hmtx["A"], ( 0, 0))
597 self.assertEqual(hmtx["B"], (400, 132))
631 hmtx = subsetfont["hmtx"]
632 self.assertEqual(hmtx["A"], (0, 0))
633 self.assertEqual(hmtx["B"], (400, 132))
666 hmtx = subsetfont["hmtx"]
667 self.assertEqual(hmtx["glyph00001"], ( 0, 0))
668 self.assertEqual(hmtx["T"], (600, 41))
/external/harfbuzz_ng/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-face-table-list.hh54 HB_OT_ACCELERATOR (OT, hmtx)
Dhb-ot-glyf-table.hh403 extents->x_bearing = font->em_scale_x (font->face->table.hmtx->get_side_bearing (gid)); in get_extents()
796 int h_delta = (int) glyph.get_header ().xMin - face->table.hmtx->get_side_bearing (gid); in init_phantom_points()
798 unsigned int h_adv = face->table.hmtx->get_advance (gid); in init_phantom_points()
966 return is_vertical ? face->table.vmtx->get_advance (gid) : face->table.hmtx->get_advance (gid); in get_advance_var()
981 …return is_vertical ? face->table.vmtx->get_side_bearing (gid) : face->table.hmtx->get_side_bearing… in get_side_bearing_var()
Dhb-subset.cc177 result = _subset2<const OT::hmtx> (plan); in _subset_table()
DMakefile.sources78 hb-ot-hmtx-table.hh \
/external/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
Dfont.cc444 Table::Builder* raw_hmtx_builder = GetReadBuilder(builder_map, Tag::hmtx); in InterRelateBuilders()
/external/harfbuzz_ng/test/api/fonts/
DREADME3 Inconsolata-Regular.abc.widerc.ttf has the hmtx width of "c" set to 600; everything else is 500. Su…
/external/fonttools/Lib/fontTools/cffLib/
Dwidth.py158 hmtx = font['hmtx'] variable
159 widths = [m[0] for m in hmtx.metrics.values()]
/external/fonttools/Lib/fontTools/varLib/
Dmutator.py114 hmtx = varfont['hmtx']
122 entry = list(hmtx[gname])
149 hmtx[gname] = tuple(entry)
/external/fonttools/Tests/varLib/
Dinstancer_test.py152 hmtx = varfont["hmtx"]
166 assert hmtx["hyphen"] == (322, 40)
171 assert hmtx["minus"] == (422, 40)
193 assert hmtx["hyphen"] == (263, 26)
196 assert hmtx["minus"] == (422, 26) # 'minus' left sidebearing changed
/external/sfntly/cpp/src/sfntly/table/
Dtable.cc95 } else if (tag == Tag::hmtx) { in GetBuilder()
/external/u-boot/drivers/video/
Dstb_truetype.h642 int loca,head,glyf,hhea,hmtx,kern; // table locations as offset from start of .ttf member
1035 info->hmtx = stbtt__find_table(data, fontstart, "hmtx"); // required in stbtt_InitFont()
1037 if (!cmap || !info->loca || !info->head || !info->glyf || !info->hhea || !info->hmtx) in stbtt_InitFont()
1475 if (advanceWidth) *advanceWidth = ttSHORT(info->data + info->hmtx + 4*glyph_index); in stbtt_GetGlyphHMetrics()
1476 if (leftSideBearing) *leftSideBearing = ttSHORT(info->data + info->hmtx + 4*glyph_index + 2); in stbtt_GetGlyphHMetrics()
1478 …if (advanceWidth) *advanceWidth = ttSHORT(info->data + info->hmtx + 4*(numOfLongHorMetrics-… in stbtt_GetGlyphHMetrics()
1479 …if (leftSideBearing) *leftSideBearing = ttSHORT(info->data + info->hmtx + 4*numOfLongHorMetrics +… in stbtt_GetGlyphHMetrics()
/external/freetype/src/sfnt/
Dsfobjs.c873 LOADM_( hmtx, 0 ); in sfnt_load_face()
927 LOADM_( hmtx, 1 ); in sfnt_load_face()
/external/mesa3d/src/imgui/
Dimstb_truetype.h722 int loca,head,glyf,hhea,hmtx,kern,gpos; // table locations as offset from start of .ttf member
1364 info->hmtx = stbtt__find_table(data, fontstart, "hmtx"); // required in stbtt_InitFont_internal()
1368 if (!cmap || !info->head || !info->hhea || !info->hmtx) in stbtt_InitFont_internal()
2277 if (advanceWidth) *advanceWidth = ttSHORT(info->data + info->hmtx + 4*glyph_index); in stbtt_GetGlyphHMetrics()
2278 if (leftSideBearing) *leftSideBearing = ttSHORT(info->data + info->hmtx + 4*glyph_index + 2); in stbtt_GetGlyphHMetrics()
2280 …if (advanceWidth) *advanceWidth = ttSHORT(info->data + info->hmtx + 4*(numOfLongHorMetrics-… in stbtt_GetGlyphHMetrics()
2281 …if (leftSideBearing) *leftSideBearing = ttSHORT(info->data + info->hmtx + 4*numOfLongHorMetrics +… in stbtt_GetGlyphHMetrics()
/external/skia/third_party/harfbuzz/
DBUILD.gn143 "$_src/hb-ot-hmtx-table.hh",
/external/fonttools/
DNEWS.rst35 ``glyf`` and ``loca`` tables, as well as with transformed ``hmtx`` table.
234 - [hmtx/vmtx]: Allow to compile/decompile ``hmtx`` and ``vmtx`` tables even
1112 - [hmtx/vmts] Read advance width/heights as unsigned short (uint16);
1296 - Fixed bug in hmtx/vmtx code that only occured if all advances were

12