Class: HexaPDF::Font::TrueType::Table::Maxp

Inherits:
HexaPDF::Font::TrueType::Table show all
Defined in:
lib/hexapdf/font/true_type/table/maxp.rb

Overview

The ‘maxp’ (maximum profile) table contains the maxima for a number of parameters (e.g. to establish memory requirements).

See: developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6maxp.html

Constant Summary

Constants inherited from HexaPDF::Font::TrueType::Table

TIME_EPOCH

Instance Attribute Summary collapse

Attributes inherited from HexaPDF::Font::TrueType::Table

#font

Method Summary

Methods inherited from HexaPDF::Font::TrueType::Table

calculate_checksum, #checksum_valid?, #directory_entry, #initialize, #raw_data

Constructor Details

This class inherits a constructor from HexaPDF::Font::TrueType::Table

Instance Attribute Details

#max_component_contoursObject

The maximum number of contours in a compound glyph.



66
67
68
# File 'lib/hexapdf/font/true_type/table/maxp.rb', line 66

def max_component_contours
  @max_component_contours
end

#max_component_depthObject

The levels of recursion (0 if the font has only simple glyphs).



90
91
92
# File 'lib/hexapdf/font/true_type/table/maxp.rb', line 90

def max_component_depth
  @max_component_depth
end

#max_component_elementsObject

The maximum number of glyphs referenced at the top level.



87
88
89
# File 'lib/hexapdf/font/true_type/table/maxp.rb', line 87

def max_component_elements
  @max_component_elements
end

#max_component_pointsObject

The maximum number of points in a compound glyph.



63
64
65
# File 'lib/hexapdf/font/true_type/table/maxp.rb', line 63

def max_component_points
  @max_component_points
end

#max_contoursObject

The maximum number of contours in a non-computed glyph.



60
61
62
# File 'lib/hexapdf/font/true_type/table/maxp.rb', line 60

def max_contours
  @max_contours
end

#max_function_defsObject

The maximum number of FDEFs (function definitions).



75
76
77
# File 'lib/hexapdf/font/true_type/table/maxp.rb', line 75

def max_function_defs
  @max_function_defs
end

#max_instruction_defsObject

The maximum number of IDEFs (instruction defintions).



78
79
80
# File 'lib/hexapdf/font/true_type/table/maxp.rb', line 78

def max_instruction_defs
  @max_instruction_defs
end

#max_pointsObject

The maximum number of points in a non-compound glyph.



57
58
59
# File 'lib/hexapdf/font/true_type/table/maxp.rb', line 57

def max_points
  @max_points
end

#max_size_of_instructionsObject

The maximum number of bytes for glyph instructions.



84
85
86
# File 'lib/hexapdf/font/true_type/table/maxp.rb', line 84

def max_size_of_instructions
  @max_size_of_instructions
end

#max_stack_elementsObject

The maximum number of elements on the stack, i.e. the stack depth.



81
82
83
# File 'lib/hexapdf/font/true_type/table/maxp.rb', line 81

def max_stack_elements
  @max_stack_elements
end

#max_storageObject

The maximum number of storage area locations.



72
73
74
# File 'lib/hexapdf/font/true_type/table/maxp.rb', line 72

def max_storage
  @max_storage
end

#max_twilight_pointsObject

The maximum number of points used in Twilight Zone (Z0).



69
70
71
# File 'lib/hexapdf/font/true_type/table/maxp.rb', line 69

def max_twilight_points
  @max_twilight_points
end

#num_glyphsObject

The number of glyphs in the font.



54
55
56
# File 'lib/hexapdf/font/true_type/table/maxp.rb', line 54

def num_glyphs
  @num_glyphs
end

#versionObject

The version of the table (a Rational).



51
52
53
# File 'lib/hexapdf/font/true_type/table/maxp.rb', line 51

def version
  @version
end