Home
last modified time | relevance | path

Searched refs:glyph_id (Results 1 – 25 of 39) sorted by relevance

12

/external/sfntly/cpp/src/sfntly/table/truetype/
Dloca_table.cc26 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 return Loca(glyph_id + 1) - Loca(glyph_id); in GlyphLength()
124 int32_t LocaTable::Builder::GlyphOffset(int32_t glyph_id) { in GlyphOffset() argument
125 if (CheckGlyphRange(glyph_id) == -1) { in GlyphOffset()
128 return GetLocaList()->at(glyph_id); in GlyphOffset()
131 int32_t LocaTable::Builder::GlyphLength(int32_t glyph_id) { in GlyphLength() argument
[all …]
Dloca_table.h77 int32_t GlyphOffset(int32_t glyph_id);
80 int32_t GlyphLength(int32_t glyph_id);
125 int32_t CheckGlyphRange(int32_t glyph_id);
153 int32_t GlyphOffset(int32_t glyph_id);
156 int32_t GlyphLength(int32_t glyph_id);
/external/sfntly/cpp/src/sfntly/table/bitmap/
Dbitmap_size_table.cc87 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 …]
Dindex_sub_table.cc30 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 …]
Dbitmap_size_table.h100 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 …]
Dindex_sub_table.h61 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 …]
Dindex_sub_table_format4.cc32 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 …]
Dbitmap_glyph_info.cc21 BitmapGlyphInfo::BitmapGlyphInfo(int32_t glyph_id, in BitmapGlyphInfo() argument
26 : glyph_id_(glyph_id), in BitmapGlyphInfo()
34 BitmapGlyphInfo::BitmapGlyphInfo(int32_t glyph_id, in BitmapGlyphInfo() argument
38 : glyph_id_(glyph_id), in BitmapGlyphInfo()
58 glyph_id_ == rhs->glyph_id() && in operator ==()
Dindex_sub_table_format3.cc32 int32_t IndexSubTableFormat3::GlyphStartOffset(int32_t glyph_id) { in GlyphStartOffset() argument
33 int32_t loca = CheckGlyphRange(glyph_id); in GlyphStartOffset()
40 int32_t IndexSubTableFormat3::GlyphLength(int32_t glyph_id) { in GlyphLength() argument
41 int32_t loca = CheckGlyphRange(glyph_id); in GlyphLength()
43 return Loca(glyph_id + 1) - Loca(glyph_id); in GlyphLength()
81 int32_t IndexSubTableFormat3::Builder::GlyphStartOffset(int32_t glyph_id) { in GlyphStartOffset() argument
82 int32_t loca = CheckGlyphRange(glyph_id); in GlyphStartOffset()
89 int32_t IndexSubTableFormat3::Builder::GlyphLength(int32_t glyph_id) { in GlyphLength() argument
90 int32_t loca = CheckGlyphRange(glyph_id); in GlyphLength()
Dindex_sub_table_format4.h71 virtual int32_t GlyphLength(int32_t glyph_id);
72 virtual int32_t GlyphStartOffset(int32_t glyph_id);
103 int32_t FindCodeOffsetPair(int32_t glyph_id);
116 virtual int32_t GlyphStartOffset(int32_t glyph_id);
117 virtual int32_t GlyphLength(int32_t glyph_id);
124 int32_t FindCodeOffsetPair(int32_t glyph_id);
Dindex_sub_table_format5.cc34 int32_t IndexSubTableFormat5::GlyphStartOffset(int32_t glyph_id) { in GlyphStartOffset() argument
35 int32_t check = CheckGlyphRange(glyph_id); in GlyphStartOffset()
43 glyph_id); in GlyphStartOffset()
50 int32_t IndexSubTableFormat5::GlyphLength(int32_t glyph_id) { in GlyphLength() argument
51 int32_t check = CheckGlyphRange(glyph_id); in GlyphLength()
97 int32_t IndexSubTableFormat5::Builder::GlyphLength(int32_t glyph_id) { in GlyphLength() argument
98 UNREFERENCED_PARAMETER(glyph_id); in GlyphLength()
102 int32_t IndexSubTableFormat5::Builder::GlyphStartOffset(int32_t glyph_id) { in GlyphStartOffset() argument
103 int32_t check = CheckGlyphRange(glyph_id); in GlyphStartOffset()
110 glyph_id); in GlyphStartOffset()
Dindex_sub_table_format2.cc45 int32_t IndexSubTableFormat2::GlyphStartOffset(int32_t glyph_id) { in GlyphStartOffset() argument
46 int32_t loca = CheckGlyphRange(glyph_id); in GlyphStartOffset()
53 int32_t IndexSubTableFormat2::GlyphLength(int32_t glyph_id) { in GlyphLength() argument
54 if (CheckGlyphRange(glyph_id) == -1) { in GlyphLength()
78 int32_t IndexSubTableFormat2::Builder::GlyphStartOffset(int32_t glyph_id) { in GlyphStartOffset() argument
79 int32_t loca = CheckGlyphRange(glyph_id); in GlyphStartOffset()
86 int32_t IndexSubTableFormat2::Builder::GlyphLength(int32_t glyph_id) { in GlyphLength() argument
87 int32_t loca = CheckGlyphRange(glyph_id); in GlyphLength()
Dindex_sub_table_format1.cc42 int32_t IndexSubTableFormat1::GlyphStartOffset(int32_t glyph_id) { in GlyphStartOffset() argument
43 int32_t loca = CheckGlyphRange(glyph_id); in GlyphStartOffset()
50 int32_t IndexSubTableFormat1::GlyphLength(int32_t glyph_id) { in GlyphLength() argument
51 int32_t loca = CheckGlyphRange(glyph_id); in GlyphLength()
80 int32_t IndexSubTableFormat1::Builder::GlyphLength(int32_t glyph_id) { in GlyphLength() argument
81 int32_t loca = CheckGlyphRange(glyph_id); in GlyphLength()
89 int32_t IndexSubTableFormat1::Builder::GlyphStartOffset(int32_t glyph_id) { in GlyphStartOffset() argument
90 int32_t loca = CheckGlyphRange(glyph_id); in GlyphStartOffset()
Dindex_sub_table_format2.h46 virtual int32_t GlyphStartOffset(int32_t glyph_id);
47 virtual int32_t GlyphLength(int32_t glyph_id);
92 virtual int32_t GlyphStartOffset(int32_t glyph_id);
93 virtual int32_t GlyphLength(int32_t glyph_id);
Dindex_sub_table_format1.h46 virtual int32_t GlyphLength(int32_t glyph_id);
47 virtual int32_t GlyphStartOffset(int32_t glyph_id);
95 virtual int32_t GlyphStartOffset(int32_t glyph_id);
96 virtual int32_t GlyphLength(int32_t glyph_id);
Dindex_sub_table_format3.h45 virtual int32_t GlyphStartOffset(int32_t glyph_id);
46 virtual int32_t GlyphLength(int32_t glyph_id);
92 virtual int32_t GlyphStartOffset(int32_t glyph_id);
93 virtual int32_t GlyphLength(int32_t glyph_id);
Dbitmap_glyph_info.h37 BitmapGlyphInfo(int32_t glyph_id,
49 BitmapGlyphInfo(int32_t glyph_id,
54 int32_t glyph_id() const { return glyph_id_; } in glyph_id() function
Dindex_sub_table_format5.h45 virtual int32_t GlyphLength(int32_t glyph_id);
46 virtual int32_t GlyphStartOffset(int32_t glyph_id);
96 virtual int32_t GlyphStartOffset(int32_t glyph_id);
97 virtual int32_t GlyphLength(int32_t glyph_id);
/external/harfbuzz_ng/src/
Dhb-ot-layout-gdef-table.hh49 inline 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()
100 …et_caret_value (hb_font_t *font, hb_direction_t direction, hb_codepoint_t glyph_id HB_UNUSED) const in get_caret_value()
123 …sition_t get_caret_value (hb_font_t *font, hb_direction_t direction, hb_codepoint_t glyph_id) const in get_caret_value()
126 if (font->get_glyph_contour_point_for_origin (glyph_id, caretValuePoint, direction, &x, &y)) in get_caret_value()
149 …et_caret_value (hb_font_t *font, hb_direction_t direction, hb_codepoint_t glyph_id HB_UNUSED) const in get_caret_value()
175 …sition_t get_caret_value (hb_font_t *font, hb_direction_t direction, hb_codepoint_t glyph_id) const in get_caret_value()
178 case 1: return u.format1.get_caret_value (font, direction, glyph_id); in get_caret_value()
179 case 2: return u.format2.get_caret_value (font, direction, glyph_id); in get_caret_value()
180 case 3: return u.format3.get_caret_value (font, direction, glyph_id); in get_caret_value()
[all …]
Dhb-ot-layout-common-private.hh690 inline unsigned int get_coverage (hb_codepoint_t glyph_id) const in get_coverage()
692 int i = glyphArray.bsearch (glyph_id); in get_coverage()
756 inline unsigned int get_coverage (hb_codepoint_t glyph_id) const in get_coverage()
758 int i = rangeRecord.bsearch (glyph_id); in get_coverage()
761 return (unsigned int) range.value + (glyph_id - range.start); in get_coverage()
867 inline unsigned int get_coverage (hb_codepoint_t glyph_id) const in get_coverage()
870 case 1: return u.format1.get_coverage(glyph_id); in get_coverage()
871 case 2: return u.format2.get_coverage(glyph_id); in get_coverage()
999 inline unsigned int get_class (hb_codepoint_t glyph_id) const in get_class()
1001 unsigned int i = (unsigned int) (glyph_id - startGlyph); in get_class()
[all …]
Dhb-ot-layout-gsub-table.hh45 hb_codepoint_t glyph_id = iter.get_glyph (); in closure() local
46 if (c->glyphs->has (glyph_id)) in closure()
47 c->glyphs->add ((glyph_id + deltaGlyphID) & 0xFFFFu); in closure()
56 hb_codepoint_t glyph_id = iter.get_glyph (); in collect_glyphs() local
57 c->input->add (glyph_id); in collect_glyphs()
58 c->output->add ((glyph_id + deltaGlyphID) & 0xFFFFu); in collect_glyphs()
76 hb_codepoint_t glyph_id = c->buffer->cur().codepoint; in apply() local
77 unsigned int index = (this+coverage).get_coverage (glyph_id); in apply()
82 glyph_id = (glyph_id + deltaGlyphID) & 0xFFFFu; in apply()
83 c->replace_glyph (glyph_id); in apply()
[all …]
/external/sfntly/cpp/src/sample/subtly/
Dfont_info.cc41 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 …]
Dfont_info.h40 GlyphId(int32_t glyph_id, FontId font_id);
46 int32_t glyph_id() const { return glyph_id_; } in glyph_id() function
47 void set_glyph_id(const int32_t glyph_id) { glyph_id_ = glyph_id; } in set_glyph_id() argument
Dfont_assembler.cc104 int32_t glyph_id = it->second.glyph_id(); in AssembleCMapTable() local
118 glyph_id_array->push_back(glyph_id); in AssembleCMapTable()
184 int32_t resolved_glyph_id = it->glyph_id(); in AssembleGlyphAndLocaTables()
/external/sfntly/cpp/src/sfntly/table/core/
Dhorizontal_metrics_table.cc70 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()

12