Class: HexaPDF::Font::TrueType::Table::Kern
- Inherits:
-
HexaPDF::Font::TrueType::Table
- Object
- HexaPDF::Font::TrueType::Table
- HexaPDF::Font::TrueType::Table::Kern
- Defined in:
- lib/hexapdf/font/true_type/table/kern.rb
Overview
The ‘kern’ table contains kerning values, i.e. values to control inter-character spacing.
Restrictions:
-
Only subtable format 0 is supported, all other subtables are ignored.
Defined Under Namespace
Modules: Format0 Classes: Subtable
Constant Summary
Constants inherited from HexaPDF::Font::TrueType::Table
Instance Attribute Summary collapse
-
#subtables ⇒ Object
readonly
The available subtables, all instances of Subtable.
-
#version ⇒ Object
The version of the table.
Attributes inherited from HexaPDF::Font::TrueType::Table
Instance Method Summary collapse
-
#horizontal_kerning_subtable ⇒ Object
Returns the first subtable that supports horizontal non-cross-stream kerning, or
nil
if no such subtable exists.
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
#subtables ⇒ Object (readonly)
The available subtables, all instances of Subtable.
92 93 94 |
# File 'lib/hexapdf/font/true_type/table/kern.rb', line 92 def subtables @subtables end |
#version ⇒ Object
The version of the table.
89 90 91 |
# File 'lib/hexapdf/font/true_type/table/kern.rb', line 89 def version @version end |
Instance Method Details
#horizontal_kerning_subtable ⇒ Object
Returns the first subtable that supports horizontal non-cross-stream kerning, or nil
if no such subtable exists.
96 97 98 |
# File 'lib/hexapdf/font/true_type/table/kern.rb', line 96 def horizontal_kerning_subtable @horizontal_kerning_subtable end |