Class: Fontisan::Stitcher::Selector::Gid
- Inherits:
-
Object
- Object
- Fontisan::Stitcher::Selector::Gid
- Defined in:
- lib/fontisan/stitcher/selector/gid.rb
Overview
Include a single glyph by its donor gid. Used for unencoded glyphs (.notdef, spaces, format-specific specials).
Instance Attribute Summary collapse
-
#gid ⇒ Object
readonly
Returns the value of attribute gid.
Instance Method Summary collapse
- #apply(source, bindings) ⇒ Object
-
#initialize(gid) ⇒ Gid
constructor
A new instance of Gid.
Constructor Details
#initialize(gid) ⇒ Gid
Returns a new instance of Gid.
11 12 13 |
# File 'lib/fontisan/stitcher/selector/gid.rb', line 11 def initialize(gid) @gid = gid end |
Instance Attribute Details
#gid ⇒ Object (readonly)
Returns the value of attribute gid.
9 10 11 |
# File 'lib/fontisan/stitcher/selector/gid.rb', line 9 def gid @gid end |
Instance Method Details
#apply(source, bindings) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/fontisan/stitcher/selector/gid.rb', line 15 def apply(source, bindings) bindings << { codepoint: nil, source: source, donor_gid: @gid, } end |