Class: Fontisan::Tables::CblcGlyphBitmapLocation

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeCblcGlyphBitmapLocation

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_lengthInteger

Returns length of the bitmap block in CBDT.

Returns:

  • (Integer)

    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_offsetInteger

Returns absolute byte offset within the source CBDT.

Returns:

  • (Integer)

    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_idInteger

Returns source glyph ID.

Returns:

  • (Integer)

    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_formatInteger

Returns CBDT image format (e.g. 17, 18, 19).

Returns:

  • (Integer)

    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