Skip to content

Add font variations example and fix cache bug in variations api#8029

Draft
lucasmerlin wants to merge 2 commits intomainfrom
lucas/font-variations-example
Draft

Add font variations example and fix cache bug in variations api#8029
lucasmerlin wants to merge 2 commits intomainfrom
lucas/font-variations-example

Conversation

@lucasmerlin
Copy link
Copy Markdown
Collaborator

@lucasmerlin lucasmerlin commented Mar 26, 2026

The font variation wasn't part of the cache key, meaning if you had the same char with different variations on screen, or if variations changed over time, only the first of the variation settings would get used.

Also adds a nice font variations example using the recursive font:

Screen.Recording.2026-03-26.at.11.26.14.mp4

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 26, 2026

Preview available at https://egui-pr-preview.github.io/pr/8029-lucasfont-variations-example
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

View snapshot changes at kitdiff

@lucasmerlin lucasmerlin added this to the 0.34.1 milestone Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant