class HexaPDF::Font::InvalidGlyph

Parent

Represents an invalid glyph, i.e. a Unicode character that has no representation in the used font.

Attributes

font_wrapper[R]

The associated font wrapper object, either a Type1Wrapper or a TrueTypeWrapper.

str[R]

The string that could not be represented as a glyph.

Public Class Methods

new(font_wrapper, str)

Creates a new Glyph object.

Public Instance Methods

apply_word_spacing?()

Word spacing is never applied for the invalid glyph, so false is returned.

control_char?()

Returns true if this glyph represents a control character like tabulator or newline.

id()

Returns the appropriate missing glyph id based on the used font.

Also aliased as: name
name()
Alias for: id
valid?()

Returns false since this is an invalid glyph.

width()
Alias for: x_min
x_max()
Alias for: x_min
x_min()

Returns 0.

Also aliased as: x_max, y_min, y_max, width
y_max()
Alias for: x_min
y_min()
Alias for: x_min