mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-10 19:03:30 +00:00
Custom Font is loading as white rectangle #6632
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#6632
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Version/Branch of Dear ImGui:
Version: 1.89.2
Branch: docking
Back-end/Renderer/Compiler/OS
Back-ends: rlImGui
Compiler: g++
Operating System: Linux Mint 21.1 Vera
My Issue/Question:
I decided to change dear imgui default font to Poppins Regular as follow:
The font is added without any error or warning, but in the dear imgui window, every character is represented by a white rectangle. The screenshot below shows my current issue.
Screenshots/Video
Standalone, minimal, complete and verifiable example:
Font Downloaded from here: https://fonts.google.com/specimen/Poppins
I'm unable to replicate this, both FreeType and TrueType, would you mind showing the font atlas?
By the way, only set
FontDataOwnedByAtlastofalseif you load the font from memory.I'm not familiar with
rlImGuibut looking at the code, maybe you need to callrlImGuiReloadFontsafterio.Fonts->Build();It was it, rlImGuiReloadFonts() fixed the issue. thank you @sakiodre !