mirror of
https://github.com/ocornut/imgui.git
synced 2026-10-18 19:13:38 +00:00
Disabling stb_freetype... doesn't actually disable it. #9573
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#9573
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.XX, Branch: XXX (master/docking/etc.)
Back-ends:
imgui_impl_XXX.cpp + imgui_impl_XXX.cpp
Compiler, OS:
Windows 11 + MSVC (VS2026)
Full config/build information:
Unneeded
Details:
If you ever wanted to use your own FontLoader for ImGui, you will probably hit this issue where ImGui will try using stb freetype or freetype no matter what.
What i mean is
IMGUI_DISABLE_STB_TRUETYPE_IMPLEMENTATIONwill get completely ignored if u don't defineIMGUI_ENABLE_FREETYPEocornut/imgui@68bd43b2b4/imgui_internal.h (L127-L131)So you are forced to modify the ImGui source code just so it doesn't do that which cleary isn't ideal.
I usually replace that snippet of code with this. Perhaps this is the solution? (I'm quite unsure if this is good or not)
Screenshots/Video:
Minimal, Complete and Verifiable Example code:
imconfig.h