Class: TTFunk::Table::Maxp
- Inherits:
-
TTFunk::Table
- Object
- TTFunk::Table
- TTFunk::Table::Maxp
- Defined in:
- lib/ttfunk/table/maxp.rb
Instance Attribute Summary collapse
-
#max_component_contours ⇒ Object
readonly
Returns the value of attribute max_component_contours.
-
#max_component_depth ⇒ Object
readonly
Returns the value of attribute max_component_depth.
-
#max_component_elements ⇒ Object
readonly
Returns the value of attribute max_component_elements.
-
#max_component_points ⇒ Object
readonly
Returns the value of attribute max_component_points.
-
#max_contours ⇒ Object
readonly
Returns the value of attribute max_contours.
-
#max_function_defs ⇒ Object
readonly
Returns the value of attribute max_function_defs.
-
#max_instruction_defs ⇒ Object
readonly
Returns the value of attribute max_instruction_defs.
-
#max_points ⇒ Object
readonly
Returns the value of attribute max_points.
-
#max_size_of_instructions ⇒ Object
readonly
Returns the value of attribute max_size_of_instructions.
-
#max_stack_elements ⇒ Object
readonly
Returns the value of attribute max_stack_elements.
-
#max_storage ⇒ Object
readonly
Returns the value of attribute max_storage.
-
#max_twilight_points ⇒ Object
readonly
Returns the value of attribute max_twilight_points.
-
#max_zones ⇒ Object
readonly
Returns the value of attribute max_zones.
-
#num_glyphs ⇒ Object
readonly
Returns the value of attribute num_glyphs.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Attributes inherited from TTFunk::Table
Class Method Summary collapse
Methods inherited from TTFunk::Table
#exists?, #initialize, #raw, #tag
Constructor Details
This class inherits a constructor from TTFunk::Table
Instance Attribute Details
#max_component_contours ⇒ Object (readonly)
Returns the value of attribute max_component_contours.
11 12 13 |
# File 'lib/ttfunk/table/maxp.rb', line 11 def max_component_contours @max_component_contours end |
#max_component_depth ⇒ Object (readonly)
Returns the value of attribute max_component_depth.
20 21 22 |
# File 'lib/ttfunk/table/maxp.rb', line 20 def max_component_depth @max_component_depth end |
#max_component_elements ⇒ Object (readonly)
Returns the value of attribute max_component_elements.
19 20 21 |
# File 'lib/ttfunk/table/maxp.rb', line 19 def max_component_elements @max_component_elements end |
#max_component_points ⇒ Object (readonly)
Returns the value of attribute max_component_points.
10 11 12 |
# File 'lib/ttfunk/table/maxp.rb', line 10 def max_component_points @max_component_points end |
#max_contours ⇒ Object (readonly)
Returns the value of attribute max_contours.
9 10 11 |
# File 'lib/ttfunk/table/maxp.rb', line 9 def max_contours @max_contours end |
#max_function_defs ⇒ Object (readonly)
Returns the value of attribute max_function_defs.
15 16 17 |
# File 'lib/ttfunk/table/maxp.rb', line 15 def max_function_defs @max_function_defs end |
#max_instruction_defs ⇒ Object (readonly)
Returns the value of attribute max_instruction_defs.
16 17 18 |
# File 'lib/ttfunk/table/maxp.rb', line 16 def max_instruction_defs @max_instruction_defs end |
#max_points ⇒ Object (readonly)
Returns the value of attribute max_points.
8 9 10 |
# File 'lib/ttfunk/table/maxp.rb', line 8 def max_points @max_points end |
#max_size_of_instructions ⇒ Object (readonly)
Returns the value of attribute max_size_of_instructions.
18 19 20 |
# File 'lib/ttfunk/table/maxp.rb', line 18 def max_size_of_instructions @max_size_of_instructions end |
#max_stack_elements ⇒ Object (readonly)
Returns the value of attribute max_stack_elements.
17 18 19 |
# File 'lib/ttfunk/table/maxp.rb', line 17 def max_stack_elements @max_stack_elements end |
#max_storage ⇒ Object (readonly)
Returns the value of attribute max_storage.
14 15 16 |
# File 'lib/ttfunk/table/maxp.rb', line 14 def max_storage @max_storage end |
#max_twilight_points ⇒ Object (readonly)
Returns the value of attribute max_twilight_points.
13 14 15 |
# File 'lib/ttfunk/table/maxp.rb', line 13 def max_twilight_points @max_twilight_points end |
#max_zones ⇒ Object (readonly)
Returns the value of attribute max_zones.
12 13 14 |
# File 'lib/ttfunk/table/maxp.rb', line 12 def max_zones @max_zones end |
#num_glyphs ⇒ Object (readonly)
Returns the value of attribute num_glyphs.
7 8 9 |
# File 'lib/ttfunk/table/maxp.rb', line 7 def num_glyphs @num_glyphs end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
6 7 8 |
# File 'lib/ttfunk/table/maxp.rb', line 6 def version @version end |
Class Method Details
.encode(maxp, mapping) ⇒ Object
22 23 24 25 26 27 |
# File 'lib/ttfunk/table/maxp.rb', line 22 def self.encode(maxp, mapping) num_glyphs = mapping.length raw = maxp.raw raw[4,2] = [num_glyphs].pack("n") return raw end |