Exception: Fontisan::PartitionCapExceededError
- Defined in:
- lib/fontisan/error.rb
Overview
Partition strategy could not satisfy the requested cap.
Raised by Stitcher::PartitionStrategy when a single Unicode block contains more codepoints than the configured cap, so the partitioner cannot sub-split it further. This is a partitioning-time detection distinct from GlyphLimitExceededError, which fires at compile time after the Stitcher has produced more glyphs than the output format supports. Both surface the same underlying constraint (65,535-glyph cap) but at different stages.
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#block_label ⇒ Object
readonly
Returns the value of attribute block_label.
-
#cap ⇒ Object
readonly
Returns the value of attribute cap.
Instance Method Summary collapse
-
#initialize(block_label:, actual:, cap:) ⇒ PartitionCapExceededError
constructor
A new instance of PartitionCapExceededError.
Constructor Details
#initialize(block_label:, actual:, cap:) ⇒ PartitionCapExceededError
Returns a new instance of PartitionCapExceededError.
256 257 258 259 260 261 262 |
# File 'lib/fontisan/error.rb', line 256 def initialize(block_label:, actual:, cap:) @block_label = block_label @actual = actual @cap = cap super("single Unicode block #{block_label} (#{actual} cps) exceeds " \ "cap #{cap}; cannot sub-split further") end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
250 251 252 |
# File 'lib/fontisan/error.rb', line 250 def actual @actual end |
#block_label ⇒ Object (readonly)
Returns the value of attribute block_label.
250 251 252 |
# File 'lib/fontisan/error.rb', line 250 def block_label @block_label end |
#cap ⇒ Object (readonly)
Returns the value of attribute cap.
250 251 252 |
# File 'lib/fontisan/error.rb', line 250 def cap @cap end |