Closed JosephCottam closed 11 years ago
Took a different tack. Renamed "value" to "info" on the glyph. To do different info functions, the glyphset can be wrapped and the value translated on the fly. Incurs an extra object allocation since glyph objects are immutable.
Info is currently handled as part of the glyph definition (e.g., glyph is a shape and a value). If a different info is desired, a new glyphset needs to be built.
Lift out info so it takes the value from the glyph and produces a new value. Glyphs remain the same interface, but "value" can be more broadly defined.