Cache glyph sizes for tabular numbers #470
Labels
enhancement
An improvement for livesplit-core.
performance
Affects the performance of the code.
rendering
The issue or pull request is affecting the rendering.
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.
The text was updated successfully, but these errors were encountered: