class HexaPDF::Font::TrueTypeWrapper::Glyph

Parent

Represents a single glyph of the wrapped font.

Attributes

font_wrapper[R]

The associated TrueTypeWrapper object.

id[R]

The glyph ID.

str[R]

The string representation of the glyph.

Public Class Methods

new(font_wrapper, 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.

valid?()

Returns true since this is a valid glyph.

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.