Class: Fontisan::Stitcher::PartitionStrategy::Blueprint
- Inherits:
-
Struct
- Object
- Struct
- Fontisan::Stitcher::PartitionStrategy::Blueprint
- Defined in:
- lib/fontisan/stitcher/partition_strategy/blueprint.rb
Overview
The result of partitioning a codepoint set: an ordered list of Partitions. Applying a blueprint to a Stitcher declares one subfont per partition.
Instance Attribute Summary collapse
-
#partitions ⇒ Object
Returns the value of attribute partitions.
Instance Method Summary collapse
-
#apply_to(stitcher) ⇒ Array<Symbol>
Names of subfonts declared.
- #names ⇒ Array<Symbol>
Instance Attribute Details
#partitions ⇒ Object
Returns the value of attribute partitions
9 10 11 |
# File 'lib/fontisan/stitcher/partition_strategy/blueprint.rb', line 9 def partitions @partitions end |
Instance Method Details
#apply_to(stitcher) ⇒ Array<Symbol>
Returns names of subfonts declared.
12 13 14 15 |
# File 'lib/fontisan/stitcher/partition_strategy/blueprint.rb', line 12 def apply_to(stitcher) partitions.each { |p| p.apply_to(stitcher) } partitions.map(&:name) end |
#names ⇒ Array<Symbol>
18 19 20 |
# File 'lib/fontisan/stitcher/partition_strategy/blueprint.rb', line 18 def names partitions.map(&:name) end |