Class: Fontisan::Tables::Cvar::TupleVariationHeader
- Inherits:
-
Binary::BaseRecord
- Object
- BinData::Record
- Binary::BaseRecord
- Fontisan::Tables::Cvar::TupleVariationHeader
- Defined in:
- lib/fontisan/tables/cvar.rb
Overview
Tuple variation header
Constant Summary collapse
- EMBEDDED_PEAK_TUPLE =
Tuple index flags
0x8000- INTERMEDIATE_REGION =
0x4000- PRIVATE_POINT_NUMBERS =
0x2000- TUPLE_INDEX_MASK =
0x0FFF
Instance Method Summary collapse
-
#embedded_peak_tuple? ⇒ Boolean
Check if tuple has embedded peak coordinates.
-
#intermediate_region? ⇒ Boolean
Check if tuple has intermediate region.
-
#private_point_numbers? ⇒ Boolean
Check if tuple has private point numbers.
-
#shared_tuple_index ⇒ Integer
Get shared tuple index.
Methods inherited from Binary::BaseRecord
Instance Method Details
#embedded_peak_tuple? ⇒ Boolean
Check if tuple has embedded peak coordinates
43 44 45 |
# File 'lib/fontisan/tables/cvar.rb', line 43 def (tuple_index & EMBEDDED_PEAK_TUPLE) != 0 end |
#intermediate_region? ⇒ Boolean
Check if tuple has intermediate region
50 51 52 |
# File 'lib/fontisan/tables/cvar.rb', line 50 def intermediate_region? (tuple_index & INTERMEDIATE_REGION) != 0 end |
#private_point_numbers? ⇒ Boolean
Check if tuple has private point numbers
57 58 59 |
# File 'lib/fontisan/tables/cvar.rb', line 57 def private_point_numbers? (tuple_index & PRIVATE_POINT_NUMBERS) != 0 end |
#shared_tuple_index ⇒ Integer
Get shared tuple index
64 65 66 |
# File 'lib/fontisan/tables/cvar.rb', line 64 def shared_tuple_index tuple_index & TUPLE_INDEX_MASK end |