PDF v0.2.2 Pdf.Font.Courier View Source

Link to this section Summary

Functions

The font ascender

The font cap height

The font descender

The font encoding

The font family of the font

The first character defined in widths/0

The full name of the font

The font italic angle

The last character defined in widths/0

The name of the font

Returns the width of the string in font units (1/1000 of font scale factor)

Returns the width of a string in points (72 points = 1 inch)

The font weight

Returns the width of the specific character

Returns the character widths of characters beginning from first_char/0

The font x-height

Link to this section Functions

The font ascender

The font cap height

The font descender

The font encoding

The font family of the font

The first character defined in widths/0

The full name of the font

The font italic angle

The last character defined in widths/0

The name of the font

Returns the width of the string in font units (1/1000 of font scale factor)

Link to this function

text_width(string, opts)

View Source

Returns the width of a string in points (72 points = 1 inch)

Link to this function

text_width(string, font_size, opts)

View Source

The font weight

Returns the width of the specific character

Examples:

iex> Pdf.Font.Courier.width("A")
123

Returns the character widths of characters beginning from first_char/0

The font x-height