Module: Fontisan::Ufo::Compile::Filters::FlattenComponents
- Defined in:
- lib/fontisan/ufo/compile/filters/flatten_components.rb
Overview
Flattens nested component references. If glyph A references glyph B which references glyph C, this filter makes A directly reference C (one level deep only).
For MVP: same as DecomposeComponents — components are cleared. Full implementation lands with TODO.full/07b.
Class Method Summary collapse
Class Method Details
.run(glyphs, **_opts) ⇒ Object
14 15 16 17 |
# File 'lib/fontisan/ufo/compile/filters/flatten_components.rb', line 14 def self.run(glyphs, **_opts) glyphs.each { |g| g.components.clear } glyphs end |