Skip to content

Add a Glyphs object #131

@corranwebster

Description

@corranwebster

Or, possibly equivalently, allow Text objects to have multiple fonts.

Currently the Text object handles layout of the character glyphs, but is currently restricted to displaying characters from just one font. This is fine for simple text display, but awkward for rich text display. A potential solution is to add a Glyphs object which takes locations of character glyphs, together with flyweight glyph objects (similar in many ways to the ColoredBitmap) where the glyph objects hold the font, character, etc. information (and possibly how to render themselves at a point).

This allows external code to handle the layout/formatting of text and create/modify the glyph information appropriately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions