class HexaPDF::Font::TrueTypeWrapper::Glyph

Parent

Represents a single glyph of the wrapped font.

Attributes

id[R]

The glyph ID.

str[R]

The string representation of the glyph.

Public Class Methods

new(font, id, str)

Creates a new Glyph object.

Public Instance Methods

apply_word_spacing?()

Returns false since the word spacing parameter is never applied for multibyte font encodings where each glyph is encoded using two bytes.

width()

Returns the width of the glyph.

x_max()

Returns the glyph's maximum x coordinate.

x_min()

Returns the glyph's minimum x coordinate.

y_max()

Returns the glyph's maximum y coordinate.

y_min()

Returns the glyph's minimum y coordinate.