Home
last modified time | relevance | path

Searched refs:hhea (Results 1 - 25 of 29) sorted by relevance

12

/third_party/skia/third_party/externals/sfntly/cpp/src/test/
H A Dverify_hhea.cc36 HorizontalHeaderTablePtr hhea = down_cast<HorizontalHeaderTable*>(table); in VerifyHHEA() local
37 if (hhea == NULL) { in VerifyHHEA()
41 EXPECT_EQ(hhea->TableVersion(), Fixed1616::Fixed(1, 0)); in VerifyHHEA()
42 EXPECT_EQ(hhea->Ascender(), HHEA_ASCENDER); in VerifyHHEA()
43 EXPECT_EQ(hhea->Descender(), HHEA_DESCENDER); in VerifyHHEA()
44 EXPECT_EQ(hhea->AdvanceWidthMax(), HHEA_ADVANCE_WIDTH_MAX); in VerifyHHEA()
45 EXPECT_EQ(hhea->MinLeftSideBearing(), HHEA_MIN_LSB); in VerifyHHEA()
46 EXPECT_EQ(hhea->MinRightSideBearing(), HHEA_MIN_RSB); in VerifyHHEA()
47 EXPECT_EQ(hhea->XMaxExtent(), HHEA_X_MAX_EXTENT); in VerifyHHEA()
51 EXPECT_EQ(hhea in VerifyHHEA()
[all...]
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.cc74 if (TTF_KNOWN_TAGS[i] == Tag::hhea) { in TestSerialization()
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dhb-ot-metrics.cc31 #include "hb-ot-hhea-table.hh"
82 GET_METRIC_Y (hhea, ascender); in _hb_ot_metrics_get_position_common()
85 GET_METRIC_Y (hhea, descender); in _hb_ot_metrics_get_position_common()
88 GET_METRIC_Y (hhea, lineGap); in _hb_ot_metrics_get_position_common()
158 case HB_OT_METRICS_TAG_HORIZONTAL_CARET_RISE: return GET_METRIC_Y (hhea, caretSlopeRise); in hb_ot_metrics_get_position()
159 case HB_OT_METRICS_TAG_HORIZONTAL_CARET_RUN: return GET_METRIC_X (hhea, caretSlopeRun); in hb_ot_metrics_get_position()
160 case HB_OT_METRICS_TAG_HORIZONTAL_CARET_OFFSET: return GET_METRIC_X (hhea, caretOffset); in hb_ot_metrics_get_position()
181 case _HB_OT_METRICS_TAG_HORIZONTAL_ASCENDER_HHEA: return GET_METRIC_Y (hhea, ascender); in hb_ot_metrics_get_position()
183 case _HB_OT_METRICS_TAG_HORIZONTAL_DESCENDER_HHEA: return GET_METRIC_Y (hhea, descender); in hb_ot_metrics_get_position()
185 case _HB_OT_METRICS_TAG_HORIZONTAL_LINE_GAP_HHEA: return GET_METRIC_Y (hhea, lineGa in hb_ot_metrics_get_position()
[all...]
H A Dhb-ot-hhea-table.hh33 * hhea -- Horizontal Header
34 * https://docs.microsoft.com/en-us/typography/opentype/spec/hhea
93 struct hhea : _hea<hhea> { struct
H A Dhb-ot-hmtx-table.hh31 #include "hb-ot-hhea-table.hh"
168 num_advances = T::is_horizontal ? face->table.hhea->numberOfLongMetrics : face->table.vhea->numberOfLongMetrics; in init()
300 * the 'hhea' table. If the font is
323 struct hmtx : hmtxvmtx<hmtx, hhea> {
H A Dhb-ot-face-table-list.hh53 HB_OT_TABLE (OT, hhea)
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/
H A DHheaTests.java34 (HorizontalHeaderTable.Builder) fontBuilder.newTableBuilder(Tag.hhea); in testAdvanceWidthMax()
38 HorizontalHeaderTable hheaTable = font.getTable(Tag.hhea); in testAdvanceWidthMax()
46 (HorizontalHeaderTable.Builder) fontBuilder.newTableBuilder(Tag.hhea); in testNumHMetrics()
50 HorizontalHeaderTable hheaTable = font.getTable(Tag.hhea); in testNumHMetrics()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/subsetter/
H A DRenumberingSubsetter.java46 fontBuilder.newTableBuilder(Tag.hhea, font.getTable(Tag.hhea).readFontData()); in setUpTables()
H A DHorizontalMetricsTableSubsetter.java33 // Note: doesn't actually create the hhea table, that should be done in the in HorizontalMetricsTableSubsetter()
35 super(Tag.hmtx, Tag.hhea); in HorizontalMetricsTableSubsetter()
H A DHorizontalMetricsTableBuilder.java31 * hhea table, leading to somewhat awkward plumbing.
80 (HorizontalHeaderTable.Builder) fontBuilder.getTableBuilder(Tag.hhea); in build()
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/
H A Dtag.cc29 const int32_t Tag::hhea = TAG('h', 'h', 'e', 'a'); member in sfntly::Tag
76 Tag::hhea,
88 Tag::hhea,
H A Dtag.h35 static const int32_t hhea; member
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/sample/sflint/
H A DSFLint.java168 HorizontalHeaderTable hhea = (HorizontalHeaderTable) font.getTable(Tag.hhea); in lintAdvanceWidths()
169 int hheaMax = hhea.advanceWidthMax(); in lintAdvanceWidths()
170 if (maxAdvanceWidth != hhea.advanceWidthMax()) { in lintAdvanceWidths()
/third_party/cups-filters/fontembed/
H A Dembed_sfnt.c185 char *hhea=otf_get_table(otf,OTF_TAG('h','h','e','a'),&len); in emb_otf_get_pdf_fontdescr() local
186 if (hhea) { in emb_otf_get_pdf_fontdescr()
187 ret->ascent=get_SHORT(hhea+4)*1000/otf->unitsPerEm; in emb_otf_get_pdf_fontdescr()
188 ret->descent=get_SHORT(hhea+6)*1000/otf->unitsPerEm; in emb_otf_get_pdf_fontdescr()
190 free(hhea); in emb_otf_get_pdf_fontdescr()
H A Dsfnt.c11 /* reqd. Tables: cmap, head, hhea, hmtx, maxp, name, OS/2, post
527 int otf_load_more(OTF_FILE *otf) // {{{ - 0 on success => hhea,hmtx,name,[glyf] in otf_load_more()
538 // {{{ read hhea table in otf_load_more()
539 char *hhea=otf_get_table(otf,OTF_TAG('h','h','e','a'),&len); in otf_load_more() local
540 if ( (!hhea)|| in otf_load_more()
541 (get_ULONG(hhea)!=0x00010000)|| // version in otf_load_more()
543 (get_SHORT(hhea+32)!=0) ) { // metric format in otf_load_more()
544 fprintf(stderr,"Unsupported OTF font / hhea table \n"); in otf_load_more()
547 otf->numberOfHMetrics=get_USHORT(hhea+34); in otf_load_more()
548 free(hhea); in otf_load_more()
[all...]
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/tools/subsetter/
H A DHorizontalMetricsTableBuilderTest.java40 (HorizontalHeaderTable.Builder) fontBuilder.newTableBuilder(Tag.hhea); in testHorizontalMetricsTableBuilder()
H A DRenumberingSubsetTest.java110 HorizontalHeaderTable hheaTable = dstFont.getTable(Tag.hhea); in testHorizontalHeader()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/
H A DTag.java41 public static final int hhea = Tag.intValue(new byte[]{'h', 'h', 'e', 'a'}); field in Tag
H A DFont.java99 Tag.hhea,
111 Tag.hhea,
901 (HorizontalHeaderTable.Builder) builderMap.get(Tag.hhea); in interRelateBuilders()
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/table/
H A Dtable.cc92 } else if (tag == Tag::hhea) { in GetBuilder()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/
H A DTable.java192 } else if (tag == Tag.hhea) { in getBuilder()
/third_party/mesa3d/src/imgui/
H A Dimstb_truetype.h722 int loca,head,glyf,hhea,hmtx,kern,gpos; // table locations as offset from start of .ttf member
1363 info->hhea = stbtt__find_table(data, fontstart, "hhea"); // required in stbtt_InitFont_internal()
1368 if (!cmap || !info->head || !info->hhea || !info->hmtx) in stbtt_InitFont_internal()
2275 stbtt_uint16 numOfLongHorMetrics = ttUSHORT(info->data+info->hhea + 34); in stbtt_GetGlyphHMetrics()
2583 if (ascent ) *ascent = ttSHORT(info->data+info->hhea + 4);
2584 if (descent) *descent = ttSHORT(info->data+info->hhea + 6);
2585 if (lineGap) *lineGap = ttSHORT(info->data+info->hhea + 8);
2609 int fheight = ttSHORT(info->data + info->hhea + 4) - ttSHORT(info->data + info->hhea
[all...]
/third_party/skia/third_party/externals/imgui/
H A Dimstb_truetype.h722 int loca,head,glyf,hhea,hmtx,kern,gpos; // table locations as offset from start of .ttf member
1363 info->hhea = stbtt__find_table(data, fontstart, "hhea"); // required in stbtt_InitFont_internal()
1368 if (!cmap || !info->head || !info->hhea || !info->hmtx) in stbtt_InitFont_internal()
2275 stbtt_uint16 numOfLongHorMetrics = ttUSHORT(info->data+info->hhea + 34); in stbtt_GetGlyphHMetrics()
2583 if (ascent ) *ascent = ttSHORT(info->data+info->hhea + 4);
2584 if (descent) *descent = ttSHORT(info->data+info->hhea + 6);
2585 if (lineGap) *lineGap = ttSHORT(info->data+info->hhea + 8);
2609 int fheight = ttSHORT(info->data + info->hhea + 4) - ttSHORT(info->data + info->hhea
[all...]
/third_party/skia/third_party/externals/freetype/src/sfnt/
H A Dsfobjs.c828 /* vertical metrics tables (i.e. `hhea' and `vhea' tables are */ in FT_LOCAL_DEF()
912 /* load the `hhea' and `hmtx' tables */ in FT_LOCAL_DEF()
913 LOADM_( hhea, 0 ); in FT_LOCAL_DEF()
936 /* No `hhea' table necessary for SFNT Mac fonts. */ in FT_LOCAL_DEF()
950 /* overriding metrics, tolerate a missing `hhea' table. */ in FT_LOCAL_DEF()
967 LOADM_( hhea, 1 ); in FT_LOCAL_DEF()
1321 * 2. Otherwise, use the `hhea' table's metrics. in FT_LOCAL_DEF()

Completed in 20 milliseconds

12