Repository navigation
Let an application draw its interface in another face - #621
Merged
Merged
Conversation
ImGuiAppConfig.InterfaceFont makes a proportional face the default font, with the bundled Nerd Font merged beneath it for icons and missing glyphs, and emoji beneath that. The Nerd Font stays registered alone as "mono". FontHelper.AddInterfaceFont builds the same font for harnesses and tools. The emoji ranges now include the symbol blocks, so characters such as the snowman fall through to emoji where the text face has no glyph. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PRgcbZv4qnJMxWKyLZSaxE
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PRgcbZv4qnJMxWKyLZSaxE
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PRgcbZv4qnJMxWKyLZSaxE
|
This was referenced Oct 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Requested by Matt · project thread
Before: every ImGuiApp application draws its interface in the bundled monospace Nerd Font, and there is no way to make a proportional face the default without losing the Nerd Font icons. Characters such as ☃ or ❄ draw as the fallback diamond, because the emoji font was only allowed to answer for the U+1F000 blocks.
After:
ImGuiAppConfig.InterfaceFonttakes a face's bytes. That face becomes the default font, with the Nerd Font merged beneath it (icons and anything the face lacks) and emoji beneath that. The Nerd Font is still registered on its own asFontAppearance.MonospaceFontName("mono").FontHelper.AddInterfaceFontbuilds the same layered font for harnesses and tools that never runInitFonts, such as ImageGui's feature gallery. The emoji ranges now include Miscellaneous Technical, Miscellaneous Symbols, Dingbats and Miscellaneous Symbols and Arrows. A merged font in Dear ImGui 1.92 answers each character from the first source that has a glyph for it, so the text face keeps every symbol it has and emoji only fill the gaps.How:
LoadConfiguredFontsloads the face under the default name and merges the Nerd Font into it whenInterfaceFontis set. The iOS atlas builder honors the setting throughAddInterfaceFont.InterfaceFontTestscovers the source layering, themonoregistration and the new emoji ranges. CLAUDE.md's Font Configuration section notes the Private Use Area caveat: a face with PUA glyphs (Inter has some) hides Nerd Font icons unless they are stripped.This is for ImageGui's UI review task 2 (Inter as the UI font).
🤖 Generated with Claude Code
https://claude.ai/code/session_01PRgcbZv4qnJMxWKyLZSaxE
Generated by Claude Code