Class: HexaPDF::Font::TrueType::Table::Kern

Inherits:
HexaPDF::Font::TrueType::Table show all
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.

See: www.microsoft.com/typography/otspec/kern.htm

Defined Under Namespace

Modules: Format0 Classes: Subtable

Constant Summary

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

TIME_EPOCH

Instance Attribute Summary collapse

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

#font

Instance Method Summary collapse

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

#subtablesObject (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

#versionObject

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_subtableObject

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