summaryrefslogtreecommitdiff
path: root/sfntly/table/bitmap/index_sub_table.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sfntly/table/bitmap/index_sub_table.cc')
-rw-r--r--sfntly/table/bitmap/index_sub_table.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/sfntly/table/bitmap/index_sub_table.cc b/sfntly/table/bitmap/index_sub_table.cc
index 66d2d83..80c0ffe 100644
--- a/sfntly/table/bitmap/index_sub_table.cc
+++ b/sfntly/table/bitmap/index_sub_table.cc
@@ -104,6 +104,17 @@ void IndexSubTable::Builder::Revert() {
Initialize(InternalReadData());
}
+CALLER_ATTACH BitmapGlyphInfo* IndexSubTable::Builder::GlyphInfo(
+ int32_t glyph_id) {
+ BitmapGlyphInfoPtr glyph_info =
+ new BitmapGlyphInfo(glyph_id,
+ image_data_offset(),
+ GlyphStartOffset(glyph_id),
+ GlyphLength(glyph_id),
+ image_format());
+ return glyph_info.Detach();
+}
+
int32_t IndexSubTable::Builder::GlyphOffset(int32_t glyph_id) {
return image_data_offset() + GlyphStartOffset(glyph_id);
}