Class: Fontisan::Tables::Colr::BaseGlyphRecord

Inherits:
Binary::BaseRecord show all
Defined in:
lib/fontisan/tables/colr.rb

Overview

Base Glyph Record structure for COLR table

Each base glyph record associates a glyph ID with its color layers. Structure (6 bytes): glyph_id, first_layer_index, num_layers

Instance Method Summary collapse

Methods inherited from Binary::BaseRecord

#raw_data, read, #valid?

Instance Method Details

#has_layers?Boolean

Returns:

  • (Boolean)


53
54
55
# File 'lib/fontisan/tables/colr.rb', line 53

def has_layers?
  num_layers.positive?
end