Class: Fontisan::Tables::Colr::LayerRecord
- Inherits:
-
Binary::BaseRecord
- Object
- BinData::Record
- Binary::BaseRecord
- Fontisan::Tables::Colr::LayerRecord
- Defined in:
- lib/fontisan/tables/colr.rb
Overview
Layer Record structure for COLR table
Each layer record specifies a glyph and palette index. Structure (4 bytes): glyph_id, palette_index
Constant Summary collapse
- FOREGROUND_COLOR =
0xFFFF
Instance Method Summary collapse
Methods inherited from Binary::BaseRecord
Instance Method Details
#uses_foreground_color? ⇒ Boolean
69 70 71 |
# File 'lib/fontisan/tables/colr.rb', line 69 def uses_foreground_color? palette_index == FOREGROUND_COLOR end |
#uses_palette_color? ⇒ Boolean
73 74 75 |
# File 'lib/fontisan/tables/colr.rb', line 73 def uses_palette_color? !uses_foreground_color? end |