Skip to content

Cache glyph sizes for tabular numbers #470

@CryZe

Description

@CryZe

A lot of our labels are shaped with tabular numbers. For that we manually position the digits based on the widest digit in the font. At the moment we query the font for those 10 digit glyphs every time we want to update a label, even if it is already shaped. We can almost definitely cache it within the font itself when loading it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAn improvement for livesplit-core.performanceAffects the performance of the code.renderingThe issue or pull request is affecting the rendering.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions