emilk / emilk/egui

`ctx.set_fonts()` Doesn't Apply Fonts with Same Name

Open
#5,252 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
30.6k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
72

Description

If a font file named `my_font` is set using `ctx.set_fonts()` and then another font file with the same name is set again using `ctx.set_fonts()`, it won't be applied.

Additionally, it's recommended to apply fonts immediately using `ctx.set_fonts()`.

Contributor guide

Open the contributing guide

Research direction

Start by locating the implementation of ctx.set_fonts() and trace how a font named my_font is handled when it is registered twice. Reproduce the reported behavior with two font files using the same name, then verify that the later call is applied immediately and that the documented recommendation is satisfied.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.