class HexaPDF::Font::TrueType::Table::Glyf::Glyph

Parent

Represents the definition of a glyph. Since the purpose of this implementation is not editing or rendering glyphs, the raw glyph data is only decoded so far as to get general information about the glyph.

Attributes

component_offsets[R]

The array with the component glyph offsets, or nil if this is not a compound glyph.

components[R]

The array with the component glyph IDs, or nil if this is not a compound glyph.

number_of_contours[R]

The number of contours in the glyph. A zero or positive number implies a simple glyph, a negative number a glyph made up from multiple components

raw_data[R]

Contains the raw byte data of the glyph.

x_max[R]

The maximum x value for coordinate data.

x_min[R]

The minimum x value for coordinate data.

y_max[R]

The maximum y value for coordinate data.

y_min[R]

The minimum y value for coordinate data.

Public Class Methods

new(raw_data)

Creates a new glyph from the given raw data.

Public Instance Methods

compound?()

Returns true if this a compound glyph.