/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/ |
D | bitmap_size_table.cc | 87 int32_t BitmapSizeTable::GlyphOffset(int32_t glyph_id) { in GlyphOffset() argument 88 IndexSubTable* subtable = SearchIndexSubTables(glyph_id); in GlyphOffset() 92 return subtable->GlyphOffset(glyph_id); in GlyphOffset() 95 int32_t BitmapSizeTable::GlyphLength(int32_t glyph_id) { in GlyphLength() argument 96 IndexSubTable* subtable = SearchIndexSubTables(glyph_id); in GlyphLength() 100 return subtable->GlyphLength(glyph_id); in GlyphLength() 103 CALLER_ATTACH BitmapGlyphInfo* BitmapSizeTable::GlyphInfo(int32_t glyph_id) { in GlyphInfo() argument 104 IndexSubTable* sub_table = SearchIndexSubTables(glyph_id); in GlyphInfo() 108 return sub_table->GlyphInfo(glyph_id); in GlyphInfo() 111 int32_t BitmapSizeTable::GlyphFormat(int32_t glyph_id) { in GlyphFormat() argument [all …]
|
D | index_sub_table.cc | 30 CALLER_ATTACH BitmapGlyphInfo* IndexSubTable::GlyphInfo(int32_t glyph_id) { in GlyphInfo() argument 31 int32_t loca = CheckGlyphRange(glyph_id); in GlyphInfo() 35 if (GlyphStartOffset(glyph_id) == -1) { in GlyphInfo() 38 BitmapGlyphInfoPtr output = new BitmapGlyphInfo(glyph_id, in GlyphInfo() 40 GlyphStartOffset(glyph_id), in GlyphInfo() 41 GlyphLength(glyph_id), in GlyphInfo() 46 int32_t IndexSubTable::GlyphOffset(int32_t glyph_id) { in GlyphOffset() argument 47 int32_t glyph_start_offset = GlyphStartOffset(glyph_id); in GlyphOffset() 79 int32_t IndexSubTable::CheckGlyphRange(int32_t glyph_id) { in CheckGlyphRange() argument 80 return CheckGlyphRange(glyph_id, first_glyph_index(), last_glyph_index()); in CheckGlyphRange() [all …]
|
D | bitmap_size_table.h | 100 CALLER_ATTACH BitmapGlyphInfo* GlyphInfo(int32_t glyph_id); 101 int32_t GlyphOffset(int32_t glyph_id); 102 int32_t GlyphLength(int32_t glyph_id); 103 int32_t GlyphFormat(int32_t glyph_id); 117 IndexSubTable::Builder* SearchIndexSubTables(int32_t glyph_id); 118 IndexSubTable::Builder* LinearSearchIndexSubTables(int32_t glyph_id); 119 IndexSubTable::Builder* BinarySearchIndexSubTables(int32_t glyph_id); 145 int32_t GlyphOffset(int32_t glyph_id); 146 int32_t GlyphLength(int32_t glyph_id); 147 CALLER_ATTACH BitmapGlyphInfo* GlyphInfo(int32_t glyph_id); [all …]
|
D | index_sub_table.h | 61 CALLER_ATTACH virtual BitmapGlyphInfo* GlyphInfo(int32_t glyph_id); 66 virtual int32_t GlyphOffset(int32_t glyph_id); 72 virtual int32_t GlyphStartOffset(int32_t glyph_id) = 0; 77 virtual int32_t GlyphLength(int32_t glyph_id) = 0; 118 int32_t CheckGlyphRange(int32_t glyph_id); 137 CALLER_ATTACH BitmapGlyphInfo* GlyphInfo(int32_t glyph_id); 138 virtual int32_t GlyphOffset(int32_t glyph_id); 139 virtual int32_t GlyphStartOffset(int32_t glyph_id) = 0; 140 virtual int32_t GlyphLength(int32_t glyph_id) = 0; 157 int32_t CheckGlyphRange(int32_t glyph_id); [all …]
|
D | index_sub_table_format4.cc | 32 int32_t IndexSubTableFormat4::GlyphStartOffset(int32_t glyph_id) { in GlyphStartOffset() argument 33 int32_t loca = CheckGlyphRange(glyph_id); in GlyphStartOffset() 37 int32_t pair_index = FindCodeOffsetPair(glyph_id); in GlyphStartOffset() 47 int32_t IndexSubTableFormat4::GlyphLength(int32_t glyph_id) { in GlyphLength() argument 48 int32_t loca = CheckGlyphRange(glyph_id); in GlyphLength() 53 int32_t pair_index = FindCodeOffsetPair(glyph_id); in GlyphLength() 73 int32_t IndexSubTableFormat4::FindCodeOffsetPair(int32_t glyph_id) { in FindCodeOffsetPair() argument 77 glyph_id); in FindCodeOffsetPair() 119 int32_t IndexSubTableFormat4::Builder::GlyphLength(int32_t glyph_id) { in GlyphLength() argument 120 int32_t loca = CheckGlyphRange(glyph_id); in GlyphLength() [all …]
|
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/ |
D | bitmap_size_table.cc | 87 int32_t BitmapSizeTable::GlyphOffset(int32_t glyph_id) { in GlyphOffset() argument 88 IndexSubTable* subtable = SearchIndexSubTables(glyph_id); in GlyphOffset() 92 return subtable->GlyphOffset(glyph_id); in GlyphOffset() 95 int32_t BitmapSizeTable::GlyphLength(int32_t glyph_id) { in GlyphLength() argument 96 IndexSubTable* subtable = SearchIndexSubTables(glyph_id); in GlyphLength() 100 return subtable->GlyphLength(glyph_id); in GlyphLength() 103 CALLER_ATTACH BitmapGlyphInfo* BitmapSizeTable::GlyphInfo(int32_t glyph_id) { in GlyphInfo() argument 104 IndexSubTable* sub_table = SearchIndexSubTables(glyph_id); in GlyphInfo() 108 return sub_table->GlyphInfo(glyph_id); in GlyphInfo() 111 int32_t BitmapSizeTable::GlyphFormat(int32_t glyph_id) { in GlyphFormat() argument [all …]
|
D | index_sub_table.cc | 30 CALLER_ATTACH BitmapGlyphInfo* IndexSubTable::GlyphInfo(int32_t glyph_id) { in GlyphInfo() argument 31 int32_t loca = CheckGlyphRange(glyph_id); in GlyphInfo() 35 if (GlyphStartOffset(glyph_id) == -1) { in GlyphInfo() 38 BitmapGlyphInfoPtr output = new BitmapGlyphInfo(glyph_id, in GlyphInfo() 40 GlyphStartOffset(glyph_id), in GlyphInfo() 41 GlyphLength(glyph_id), in GlyphInfo() 46 int32_t IndexSubTable::GlyphOffset(int32_t glyph_id) { in GlyphOffset() argument 47 int32_t glyph_start_offset = GlyphStartOffset(glyph_id); in GlyphOffset() 79 int32_t IndexSubTable::CheckGlyphRange(int32_t glyph_id) { in CheckGlyphRange() argument 80 return CheckGlyphRange(glyph_id, first_glyph_index(), last_glyph_index()); in CheckGlyphRange() [all …]
|
D | bitmap_size_table.h | 100 CALLER_ATTACH BitmapGlyphInfo* GlyphInfo(int32_t glyph_id); 101 int32_t GlyphOffset(int32_t glyph_id); 102 int32_t GlyphLength(int32_t glyph_id); 103 int32_t GlyphFormat(int32_t glyph_id); 117 IndexSubTable::Builder* SearchIndexSubTables(int32_t glyph_id); 118 IndexSubTable::Builder* LinearSearchIndexSubTables(int32_t glyph_id); 119 IndexSubTable::Builder* BinarySearchIndexSubTables(int32_t glyph_id); 145 int32_t GlyphOffset(int32_t glyph_id); 146 int32_t GlyphLength(int32_t glyph_id); 147 CALLER_ATTACH BitmapGlyphInfo* GlyphInfo(int32_t glyph_id); [all …]
|
D | index_sub_table.h | 61 CALLER_ATTACH virtual BitmapGlyphInfo* GlyphInfo(int32_t glyph_id); 66 virtual int32_t GlyphOffset(int32_t glyph_id); 72 virtual int32_t GlyphStartOffset(int32_t glyph_id) = 0; 77 virtual int32_t GlyphLength(int32_t glyph_id) = 0; 118 int32_t CheckGlyphRange(int32_t glyph_id); 137 CALLER_ATTACH BitmapGlyphInfo* GlyphInfo(int32_t glyph_id); 138 virtual int32_t GlyphOffset(int32_t glyph_id); 139 virtual int32_t GlyphStartOffset(int32_t glyph_id) = 0; 140 virtual int32_t GlyphLength(int32_t glyph_id) = 0; 157 int32_t CheckGlyphRange(int32_t glyph_id); [all …]
|
D | index_sub_table_format4.cc | 32 int32_t IndexSubTableFormat4::GlyphStartOffset(int32_t glyph_id) { in GlyphStartOffset() argument 33 int32_t loca = CheckGlyphRange(glyph_id); in GlyphStartOffset() 37 int32_t pair_index = FindCodeOffsetPair(glyph_id); in GlyphStartOffset() 47 int32_t IndexSubTableFormat4::GlyphLength(int32_t glyph_id) { in GlyphLength() argument 48 int32_t loca = CheckGlyphRange(glyph_id); in GlyphLength() 53 int32_t pair_index = FindCodeOffsetPair(glyph_id); in GlyphLength() 73 int32_t IndexSubTableFormat4::FindCodeOffsetPair(int32_t glyph_id) { in FindCodeOffsetPair() argument 77 glyph_id); in FindCodeOffsetPair() 119 int32_t IndexSubTableFormat4::Builder::GlyphLength(int32_t glyph_id) { in GlyphLength() argument 120 int32_t loca = CheckGlyphRange(glyph_id); in GlyphLength() [all …]
|
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/table/truetype/ |
D | loca_table.cc | 26 int32_t LocaTable::GlyphOffset(int32_t glyph_id) { in GlyphOffset() argument 27 if (glyph_id < 0 || glyph_id >= num_glyphs_) { in GlyphOffset() 33 return Loca(glyph_id); in GlyphOffset() 36 int32_t LocaTable::GlyphLength(int32_t glyph_id) { in GlyphLength() argument 37 if (glyph_id < 0 || glyph_id >= num_glyphs_) { in GlyphLength() 43 int32_t glyph_val = Loca(glyph_id); in GlyphLength() 44 int32_t glyph_next_val = Loca(glyph_id + 1); in GlyphLength() 128 int32_t LocaTable::Builder::GlyphOffset(int32_t glyph_id) { in GlyphOffset() argument 129 if (CheckGlyphRange(glyph_id) == -1) { in GlyphOffset() 132 return GetLocaList()->at(glyph_id); in GlyphOffset() [all …]
|
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/sfntly/table/truetype/ |
D | loca_table.cc | 26 int32_t LocaTable::GlyphOffset(int32_t glyph_id) { in GlyphOffset() argument 27 if (glyph_id < 0 || glyph_id >= num_glyphs_) { in GlyphOffset() 33 return Loca(glyph_id); in GlyphOffset() 36 int32_t LocaTable::GlyphLength(int32_t glyph_id) { in GlyphLength() argument 37 if (glyph_id < 0 || glyph_id >= num_glyphs_) { in GlyphLength() 43 int32_t glyph_val = Loca(glyph_id); in GlyphLength() 44 int32_t glyph_next_val = Loca(glyph_id + 1); in GlyphLength() 128 int32_t LocaTable::Builder::GlyphOffset(int32_t glyph_id) { in GlyphOffset() argument 129 if (CheckGlyphRange(glyph_id) == -1) { in GlyphOffset() 132 return GetLocaList()->at(glyph_id); in GlyphOffset() [all …]
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
D | hb-aat-layout-common.hh | 54 const T* get_value (hb_codepoint_t glyph_id, unsigned int num_glyphs) const in get_value() 56 if (unlikely (glyph_id >= num_glyphs)) return nullptr; in get_value() 57 return &arrayZ[glyph_id]; in get_value() 112 const T* get_value (hb_codepoint_t glyph_id) const in get_value() 114 const LookupSegmentSingle<T> *v = segments.bsearch (glyph_id); in get_value() 144 const T* get_value (hb_codepoint_t glyph_id, const void *base) const in get_value() 146 return first <= glyph_id && glyph_id <= last ? &(base+valuesZ)[glyph_id - first] : nullptr; in get_value() 183 const T* get_value (hb_codepoint_t glyph_id) const in get_value() 185 const LookupSegmentArray<T> *v = segments.bsearch (glyph_id); in get_value() 186 return v ? v->get_value (glyph_id, this) : nullptr; in get_value() [all …]
|
D | hb-aat-layout-opbd-table.hh | 58 bool get_bounds (hb_font_t *font, hb_codepoint_t glyph_id, in get_bounds() 61 …const Offset16To<OpticalBounds> *bounds_offset = lookupTable.get_value (glyph_id, font->face->get_… in get_bounds() 92 bool get_bounds (hb_font_t *font, hb_codepoint_t glyph_id, in get_bounds() 95 …const Offset16To<OpticalBounds> *bounds_offset = lookupTable.get_value (glyph_id, font->face->get_… in get_bounds() 100 if (font->get_glyph_contour_point (glyph_id, bounds.leftSide, &left, &ignore) || in get_bounds() 101 font->get_glyph_contour_point (glyph_id, bounds.topSide, &ignore, &top) || in get_bounds() 102 font->get_glyph_contour_point (glyph_id, bounds.rightSide, &right, &ignore) || in get_bounds() 103 font->get_glyph_contour_point (glyph_id, bounds.bottomSide, &ignore, &bottom)) in get_bounds() 131 bool get_bounds (hb_font_t *font, hb_codepoint_t glyph_id, in get_bounds() 136 case 0: return u.format0.get_bounds (font, glyph_id, extents, this); in get_bounds() [all …]
|
D | hb-ot-layout-gdef-table.hh | 59 unsigned int get_attach_points (hb_codepoint_t glyph_id, in get_attach_points() 64 unsigned int index = (this+coverage).get_coverage (glyph_id); in get_attach_points() 168 …hb_position_t get_caret_value (hb_font_t *font, hb_direction_t direction, hb_codepoint_t glyph_id)… in get_caret_value() 171 font->get_glyph_contour_point_for_origin (glyph_id, caretValuePoint, direction, &x, &y); in get_caret_value() 234 hb_codepoint_t glyph_id, in get_caret_value() 239 case 2: return u.format2.get_caret_value (font, direction, glyph_id); in get_caret_value() 298 hb_codepoint_t glyph_id, in get_lig_carets() 308 …(const CaretValue &value) { return value.get_caret_value (font, direction, glyph_id, var_store); }) in get_lig_carets() 354 hb_codepoint_t glyph_id, in get_lig_carets() 360 unsigned int index = (this+coverage).get_coverage (glyph_id); in get_lig_carets() [all …]
|
/third_party/flutter/skia/third_party/externals/harfbuzz/src/ |
D | hb-aat-layout-common.hh | 51 const T* get_value (hb_codepoint_t glyph_id, unsigned int num_glyphs) const in get_value() 53 if (unlikely (glyph_id >= num_glyphs)) return nullptr; in get_value() 54 return &arrayZ[glyph_id]; in get_value() 109 const T* get_value (hb_codepoint_t glyph_id) const in get_value() 111 const LookupSegmentSingle<T> *v = segments.bsearch (glyph_id); in get_value() 141 const T* get_value (hb_codepoint_t glyph_id, const void *base) const in get_value() 143 return first <= glyph_id && glyph_id <= last ? &(base+valuesZ)[glyph_id - first] : nullptr; in get_value() 180 const T* get_value (hb_codepoint_t glyph_id) const in get_value() 182 const LookupSegmentArray<T> *v = segments.bsearch (glyph_id); in get_value() 183 return v ? v->get_value (glyph_id, this) : nullptr; in get_value() [all …]
|
D | hb-ot-color-sbix-table.hh | 72 hb_blob_t *get_glyph_blob (unsigned int glyph_id, in get_glyph_blob() 88 if (unlikely (glyph_id >= num_glyphs || in get_glyph_blob() 89 imageOffsetsZ[glyph_id + 1] <= imageOffsetsZ[glyph_id] || in get_glyph_blob() 90 imageOffsetsZ[glyph_id + 1] - imageOffsetsZ[glyph_id] <= SBIXGlyph::min_size || in get_glyph_blob() 91 (unsigned int) imageOffsetsZ[glyph_id + 1] > sbix_len - strike_offset)) in get_glyph_blob() 94 …unsigned int glyph_offset = strike_offset + (unsigned int) imageOffsetsZ[glyph_id] + SBIXGlyph::mi… in get_glyph_blob() 95 …unsigned int glyph_length = imageOffsetsZ[glyph_id + 1] - imageOffsetsZ[glyph_id] - SBIXGlyph::min… in get_glyph_blob() 97 const SBIXGlyph *glyph = &(this+imageOffsetsZ[glyph_id]); in get_glyph_blob() 103 glyph_id = *((HBUINT16 *) &glyph->data); in get_glyph_blob() 159 hb_codepoint_t glyph_id, in reference_png() [all …]
|
D | hb-ot-layout-gdef-table.hh | 49 unsigned int get_attach_points (hb_codepoint_t glyph_id, in get_attach_points() 54 unsigned int index = (this+coverage).get_coverage (glyph_id); in get_attach_points() 124 …hb_position_t get_caret_value (hb_font_t *font, hb_direction_t direction, hb_codepoint_t glyph_id)… in get_caret_value() 127 font->get_glyph_contour_point_for_origin (glyph_id, caretValuePoint, direction, &x, &y); in get_caret_value() 177 hb_codepoint_t glyph_id, in get_caret_value() 182 case 2: return u.format2.get_caret_value (font, direction, glyph_id); in get_caret_value() 215 hb_codepoint_t glyph_id, in get_lig_carets() 226 caret_array[i] = (this+array[i]).get_caret_value (font, direction, glyph_id, var_store); in get_lig_carets() 251 hb_codepoint_t glyph_id, in get_lig_carets() 257 unsigned int index = (this+coverage).get_coverage (glyph_id); in get_lig_carets() [all …]
|
/third_party/harfbuzz/src/ |
D | hb-aat-layout-common.hh | 51 const T* get_value (hb_codepoint_t glyph_id, unsigned int num_glyphs) const in get_value() 53 if (unlikely (glyph_id >= num_glyphs)) return nullptr; in get_value() 54 return &arrayZ[glyph_id]; in get_value() 109 const T* get_value (hb_codepoint_t glyph_id) const in get_value() 111 const LookupSegmentSingle<T> *v = segments.bsearch (glyph_id); in get_value() 141 const T* get_value (hb_codepoint_t glyph_id, const void *base) const in get_value() 143 return first <= glyph_id && glyph_id <= last ? &(base+valuesZ)[glyph_id - first] : nullptr; in get_value() 180 const T* get_value (hb_codepoint_t glyph_id) const in get_value() 182 const LookupSegmentArray<T> *v = segments.bsearch (glyph_id); in get_value() 183 return v ? v->get_value (glyph_id, this) : nullptr; in get_value() [all …]
|
D | hb-aat-layout-opbd-table.hh | 58 bool get_bounds (hb_font_t *font, hb_codepoint_t glyph_id, in get_bounds() 61 …const Offset16To<OpticalBounds> *bounds_offset = lookupTable.get_value (glyph_id, font->face->get_… in get_bounds() 92 bool get_bounds (hb_font_t *font, hb_codepoint_t glyph_id, in get_bounds() 95 …const Offset16To<OpticalBounds> *bounds_offset = lookupTable.get_value (glyph_id, font->face->get_… in get_bounds() 100 if (font->get_glyph_contour_point (glyph_id, bounds.leftSide, &left, &ignore) || in get_bounds() 101 font->get_glyph_contour_point (glyph_id, bounds.topSide, &ignore, &top) || in get_bounds() 102 font->get_glyph_contour_point (glyph_id, bounds.rightSide, &right, &ignore) || in get_bounds() 103 font->get_glyph_contour_point (glyph_id, bounds.bottomSide, &ignore, &bottom)) in get_bounds() 131 bool get_bounds (hb_font_t *font, hb_codepoint_t glyph_id, in get_bounds() 136 case 0: return u.format0.get_bounds (font, glyph_id, extents, this); in get_bounds() [all …]
|
D | hb-ot-layout-gdef-table.hh | 59 unsigned int get_attach_points (hb_codepoint_t glyph_id, in get_attach_points() 64 unsigned int index = (this+coverage).get_coverage (glyph_id); in get_attach_points() 169 …hb_position_t get_caret_value (hb_font_t *font, hb_direction_t direction, hb_codepoint_t glyph_id)… in get_caret_value() 172 font->get_glyph_contour_point_for_origin (glyph_id, caretValuePoint, direction, &x, &y); in get_caret_value() 235 hb_codepoint_t glyph_id, in get_caret_value() 240 case 2: return u.format2.get_caret_value (font, direction, glyph_id); in get_caret_value() 299 hb_codepoint_t glyph_id, in get_lig_carets() 309 …(const CaretValue &value) { return value.get_caret_value (font, direction, glyph_id, var_store); }) in get_lig_carets() 355 hb_codepoint_t glyph_id, in get_lig_carets() 361 unsigned int index = (this+coverage).get_coverage (glyph_id); in get_lig_carets() [all …]
|
/third_party/skia/third_party/externals/sfntly/cpp/src/sample/subtly/ |
D | font_info.cc | 41 GlyphId::GlyphId(int32_t glyph_id, FontId font_id) in GlyphId() argument 42 : glyph_id_(glyph_id), in GlyphId() 47 return glyph_id_ == other.glyph_id(); in operator ==() 51 return glyph_id_ < other.glyph_id(); in operator <() 207 unresolved_glyph_ids->insert(it->second.glyph_id()); in ResolveCompositeGlyphs() 212 int32_t glyph_id = *(unresolved_glyph_ids->begin()); in ResolveCompositeGlyphs() local 214 if (glyph_id < 0 || glyph_id > loca_table_->num_glyphs()) { in ResolveCompositeGlyphs() 216 fprintf(stderr, "%d larger than %d or smaller than 0\n", glyph_id, in ResolveCompositeGlyphs() 221 int32_t length = loca_table_->GlyphLength(glyph_id); in ResolveCompositeGlyphs() 224 fprintf(stderr, "Zero length glyph %d\n", glyph_id); in ResolveCompositeGlyphs() [all …]
|
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/sample/subtly/ |
D | font_info.cc | 41 GlyphId::GlyphId(int32_t glyph_id, FontId font_id) in GlyphId() argument 42 : glyph_id_(glyph_id), in GlyphId() 47 return glyph_id_ == other.glyph_id(); in operator ==() 51 return glyph_id_ < other.glyph_id(); in operator <() 207 unresolved_glyph_ids->insert(it->second.glyph_id()); in ResolveCompositeGlyphs() 212 int32_t glyph_id = *(unresolved_glyph_ids->begin()); in ResolveCompositeGlyphs() local 214 if (glyph_id < 0 || glyph_id > loca_table_->num_glyphs()) { in ResolveCompositeGlyphs() 216 fprintf(stderr, "%d larger than %d or smaller than 0\n", glyph_id, in ResolveCompositeGlyphs() 221 int32_t length = loca_table_->GlyphLength(glyph_id); in ResolveCompositeGlyphs() 224 fprintf(stderr, "Zero length glyph %d\n", glyph_id); in ResolveCompositeGlyphs() [all …]
|
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/table/core/ |
D | horizontal_metrics_table.cc | 70 int32_t HorizontalMetricsTable::AdvanceWidth(int32_t glyph_id) { in AdvanceWidth() argument 71 if (glyph_id < num_hmetrics_) { in AdvanceWidth() 72 return HMetricAdvanceWidth(glyph_id); in AdvanceWidth() 74 return HMetricAdvanceWidth(glyph_id - num_hmetrics_); in AdvanceWidth() 77 int32_t HorizontalMetricsTable::LeftSideBearing(int32_t glyph_id) { in LeftSideBearing() argument 78 if (glyph_id < num_hmetrics_) { in LeftSideBearing() 79 return HMetricLSB(glyph_id); in LeftSideBearing() 81 return LsbTableEntry(glyph_id - num_hmetrics_); in LeftSideBearing()
|
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/sfntly/table/core/ |
D | horizontal_metrics_table.cc | 70 int32_t HorizontalMetricsTable::AdvanceWidth(int32_t glyph_id) { in AdvanceWidth() argument 71 if (glyph_id < num_hmetrics_) { in AdvanceWidth() 72 return HMetricAdvanceWidth(glyph_id); in AdvanceWidth() 74 return HMetricAdvanceWidth(glyph_id - num_hmetrics_); in AdvanceWidth() 77 int32_t HorizontalMetricsTable::LeftSideBearing(int32_t glyph_id) { in LeftSideBearing() argument 78 if (glyph_id < num_hmetrics_) { in LeftSideBearing() 79 return HMetricLSB(glyph_id); in LeftSideBearing() 81 return LsbTableEntry(glyph_id - num_hmetrics_); in LeftSideBearing()
|