Exception: Prawn::Fonts::TTF::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/prawn/fonts/ttf.rb

Overview

TrueType font error.

Direct Known Subclasses

NoPostscriptName, NoUnicodeCMap

Instance Method Summary collapse

Constructor Details

#initialize(message = DEFAULT_MESSAGE, font: nil) ⇒ Error

Returns a new instance of Error.

Source Code
lib/prawn/fonts/ttf.rb, line 28
28
def initialize(message = DEFAULT_MESSAGE, font: nil)
29
  if font && message == DEFAULT_MESSAGE
30
    super(format(MESSAGE_WITH_FONT, font: font))
31
  else
32
    super(message)
33
  end
34
end