Exception: Fontisan::GlyphLimitExceededError

Inherits:
Error
  • Object
show all
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

Instance Method Summary collapse

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(build_message)
end

Instance Attribute Details

#actualObject (readonly)

Returns the value of attribute actual.



214
215
216
# File 'lib/fontisan/error.rb', line 214

def actual
  @actual
end

#formatObject (readonly)

Returns the value of attribute format.



214
215
216
# File 'lib/fontisan/error.rb', line 214

def format
  @format
end

#limitObject (readonly)

Returns the value of attribute limit.



214
215
216
# File 'lib/fontisan/error.rb', line 214

def limit
  @limit
end