Home / Forums / Dear ImGui Font Atlas: Loading Custom TTF Fonts, Asian Characters & FontAwesome Glyphs

UnreliableCode Community

Developer Research, Reverse Engineering & Coding Community

Tutorial

Dear ImGui Font Atlas: Loading Custom TTF Fonts, Asian Characters & FontAwesome Glyphs

RenderMaster
ImGui UI Designer
VIP
Rep: 310
Join Date: Sep 2023
Posts: 32
Thanks: 82
1y ago · Sep 9, 2024 8:58 PM
#1
Merging icon fonts (FontAwesome) into the main font atlas using ImFontConfig::MergeMode = true.
RenderMaster | Clean UI Design & Dear ImGui widgets
The following users thanked RenderMaster for this post:
ImGuiStyler
ImGui Animation Specialist
MEMBER
Rep: 210
Join Date: Mar 2024
Posts: 22
Thanks: 55
1y ago · Sep 9, 2024 11:32 PM
#2
Using ImFontGlyphRangesBuilder to include specific Unicode ranges (Cyrillic, Japanese Hiragana/Katakana, Chinese) without bloating GPU texture memory.
ImGuiStyler | Clean Custom UI Controls & Easing
GlowShader
Shader & Overlay Artist
MEMBER
Rep: 185
Join Date: Oct 2023
Posts: 36
Thanks: 46
1y ago · Sep 10, 2024 7:32 AM
#3
Rebuilding font atlases with custom oversample settings (OversampleH = 2, OversampleV = 1) makes UI text crisp on Retina / 4K displays.
GlowShader | Shaders, Stencils & DirectX DrawLists