class

PDF::Fonts::Base

Inherits Reference < Object

Abstract base class for font handlers.

Instance methods

glyph_width(char : Char) : Int32

Returns the width of a glyph in 1/1000 of the font's em-square.

Source
name

Returns the font name as it appears in the PDF.

Source
string_width(text : String, size : Float64) : Float64

Returns the width of a string in points at the given size.

Source
to_dictionary

Returns the PDF font dictionary for this font.

Source