module HexaPDF::FontLoader::Standard14

This module is used for providing the standard 14 PDF fonts.

Constants

MAPPING

Mapping of font family name and variant to font name.

Public Class Methods

available_fonts(_document)

Returns a hash of the form ‘font_name => [variants, …]’ of the standard 14 PDF fonts.

call(document, name, variant: :none, custom_encoding: false, **)

Returns a font wrapper for the named Standard PDF font.

document

The PDF document to associate the font wrapper with.

name

The name of the built-in font. One of Times, Helvetica, Courier, Symbol or ZapfDingbats.

variant

The font variant. Can be :none, :bold, :italic, :bold_italic for Times, Helvetica and Courier; and must be :none for Symbol and ZapfDingbats.

custom_encoding

For Times, Helvetica and Courier the standard encoding WinAnsiEncoding is used. If this is not wanted because access to other glyphs is needed, set this to true