Exception: Fontisan::GlyphLimitExceededError
- Defined in:
- lib/fontisan/error.rb
Overview
Stitcher produced more glyphs than the output format supports.
Raised by Stitcher::GlyphLimit.check! before writing, so the user gets an actionable message instead of a silently truncated font.
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
Instance Method Summary collapse
-
#initialize(actual:, limit:, format:) ⇒ GlyphLimitExceededError
constructor
A new instance of GlyphLimitExceededError.
Constructor Details
#initialize(actual:, limit:, format:) ⇒ GlyphLimitExceededError
Returns a new instance of GlyphLimitExceededError.
216 217 218 219 220 221 |
# File 'lib/fontisan/error.rb', line 216 def initialize(actual:, limit:, format:) @actual = actual @limit = limit @format = format super() end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
214 215 216 |
# File 'lib/fontisan/error.rb', line 214 def actual @actual end |
#format ⇒ Object (readonly)
Returns the value of attribute format.
214 215 216 |
# File 'lib/fontisan/error.rb', line 214 def format @format end |
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
214 215 216 |
# File 'lib/fontisan/error.rb', line 214 def limit @limit end |