Class: Fontisan::Tables::VariationAxisRecord
- Inherits:
-
Binary::BaseRecord
- Object
- BinData::Record
- Binary::BaseRecord
- Fontisan::Tables::VariationAxisRecord
- Defined in:
- lib/fontisan/tables/fvar.rb
Overview
BinData structure for variation axis record
Each axis defines a design dimension along which the font can vary, such as weight (wght), width (wdth), italic (ital), or slant (slnt).
Instance Method Summary collapse
-
#default_value ⇒ Float
Convert default value from fixed-point to float.
-
#max_value ⇒ Float
Convert maximum value from fixed-point to float.
-
#min_value ⇒ Float
Convert minimum value from fixed-point to float.
Methods inherited from Binary::BaseRecord
Instance Method Details
#default_value ⇒ Float
Convert default value from fixed-point to float
29 30 31 |
# File 'lib/fontisan/tables/fvar.rb', line 29 def default_value fixed_to_float(default_value_raw) end |
#max_value ⇒ Float
Convert maximum value from fixed-point to float
36 37 38 |
# File 'lib/fontisan/tables/fvar.rb', line 36 def max_value fixed_to_float(max_value_raw) end |
#min_value ⇒ Float
Convert minimum value from fixed-point to float
22 23 24 |
# File 'lib/fontisan/tables/fvar.rb', line 22 def min_value fixed_to_float(min_value_raw) end |