Class: Fontisan::Tables::VariationAxisRecord

Inherits:
Binary::BaseRecord show all
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

Methods inherited from Binary::BaseRecord

#raw_data, read, #valid?

Instance Method Details

#default_valueFloat

Convert default value from fixed-point to float

Returns:

  • (Float)

    Default value for this axis



29
30
31
# File 'lib/fontisan/tables/fvar.rb', line 29

def default_value
  fixed_to_float(default_value_raw)
end

#max_valueFloat

Convert maximum value from fixed-point to float

Returns:

  • (Float)

    Maximum value for this axis



36
37
38
# File 'lib/fontisan/tables/fvar.rb', line 36

def max_value
  fixed_to_float(max_value_raw)
end

#min_valueFloat

Convert minimum value from fixed-point to float

Returns:

  • (Float)

    Minimum value for this axis



22
23
24
# File 'lib/fontisan/tables/fvar.rb', line 22

def min_value
  fixed_to_float(min_value_raw)
end