Class: Fontisan::Tables::CblcGlyphBitmapLocation
- Inherits:
-
Struct
- Object
- Struct
- Fontisan::Tables::CblcGlyphBitmapLocation
- Defined in:
- lib/fontisan/tables/cblc_glyph_bitmap_location.rb
Overview
Immutable value object locating one glyph's bitmap inside a CBDT table.
A CblcIndexSubTable produces one of these per glyph in its range. The subsetting pipeline reads them to know which CBDT byte range to retain, then computes fresh offsets for the subset output.
Instance Attribute Summary collapse
-
#byte_length ⇒ Integer
Length of the bitmap block in CBDT.
-
#cbdt_offset ⇒ Integer
Absolute byte offset within the source CBDT.
-
#glyph_id ⇒ Integer
Source glyph ID.
-
#image_format ⇒ Integer
CBDT image format (e.g. 17, 18, 19).
Instance Method Summary collapse
-
#initialize ⇒ CblcGlyphBitmapLocation
constructor
A new instance of CblcGlyphBitmapLocation.
Constructor Details
#initialize ⇒ CblcGlyphBitmapLocation
Returns a new instance of CblcGlyphBitmapLocation.
22 23 24 25 |
# File 'lib/fontisan/tables/cblc_glyph_bitmap_location.rb', line 22 def initialize(*) super freeze end |
Instance Attribute Details
#byte_length ⇒ Integer
Returns length of the bitmap block in CBDT.
19 20 21 22 23 24 25 26 |
# File 'lib/fontisan/tables/cblc_glyph_bitmap_location.rb', line 19 CblcGlyphBitmapLocation = Struct.new(:glyph_id, :image_format, :cbdt_offset, :byte_length, keyword_init: true) do def initialize(*) super freeze end end |
#cbdt_offset ⇒ Integer
Returns absolute byte offset within the source CBDT.
19 20 21 22 23 24 25 26 |
# File 'lib/fontisan/tables/cblc_glyph_bitmap_location.rb', line 19 CblcGlyphBitmapLocation = Struct.new(:glyph_id, :image_format, :cbdt_offset, :byte_length, keyword_init: true) do def initialize(*) super freeze end end |
#glyph_id ⇒ Integer
Returns source glyph ID.
19 20 21 22 23 24 25 26 |
# File 'lib/fontisan/tables/cblc_glyph_bitmap_location.rb', line 19 CblcGlyphBitmapLocation = Struct.new(:glyph_id, :image_format, :cbdt_offset, :byte_length, keyword_init: true) do def initialize(*) super freeze end end |
#image_format ⇒ Integer
Returns CBDT image format (e.g. 17, 18, 19).
19 20 21 22 23 24 25 26 |
# File 'lib/fontisan/tables/cblc_glyph_bitmap_location.rb', line 19 CblcGlyphBitmapLocation = Struct.new(:glyph_id, :image_format, :cbdt_offset, :byte_length, keyword_init: true) do def initialize(*) super freeze end end |