Skip to content

Use a real text layout engine #11

@azsn

Description

@azsn

Pango seems like it could work. It might be able to replace the FreeType dependency for font loading too, I'm not sure. HarfBuzz is probably not sufficient on its own because it just does shaping -- no line breaks, bidirectional text, justification, etc.

I'm thinking this should look like a class or some functions which take in some text with formatting (e.g. Pango markup) and returns an array of rectangles specifying the location where each glyph should be placed. (The rectangles could then be converted to triangle verts and sent off to the graphics card.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions