ocornut
8a8d8a7b38
Fonts: Exposed CompactCache(). Hide ClearCache().
2025-06-11 15:47:35 +02:00
ocornut
eb79e3ab3d
Fonts: Restore a functional AddCustomRectFontGlyph().
2025-06-11 15:47:35 +02:00
ocornut
815553c4b4
Fonts: ImFontConfig: added GlyphExcludeRanges[].
2025-06-11 15:47:35 +02:00
ocornut
96786a183b
Fonts: Create a fallback glyph if none is available (fix crash on fonts with no fallback)
2025-06-11 15:47:34 +02:00
ocornut
066b24d741
Fonts: Fixed _OnChangedTextureID() asserting when calling on e.g. finalized drawlists.
2025-06-11 15:47:34 +02:00
ocornut
82b81fce68
Fonts: PushFontSize() with -1 uses sources[0]'s size for now (backward compat design)
2025-06-11 15:47:34 +02:00
ocornut
6580590226
Fonts: Allow PushFont/NewFrame/PopFont idioms to function.
2025-06-11 15:47:29 +02:00
ocornut
842c313db2
Fonts: Reordered ImFont fields.
2025-06-11 15:47:25 +02:00
ocornut
99f6b305c1
Fonts: Baked system, v12: support GlyphOffset / GlyphMinAdvanceX / GlyphMaxAdvanceX by scaling from ref value.
...
Overwriting cfg->PixelSnapH = true; in imgui_freetype is weird.
2025-06-11 15:47:21 +02:00
ocornut
df694c89b0
Fonts: Baked system, v11.
2025-06-11 15:47:17 +02:00
ocornut
57d345ff80
Textures: Comments around ImTextureID type.
2025-06-11 15:47:00 +02:00
ocornut
3ce753c489
Fonts: Debug dump to disk, debug log.
2025-06-11 15:47:00 +02:00
ocornut
be151977ca
Fonts: Texture resizing favor growing height, halve pack nodes.
2025-06-11 15:46:28 +02:00
ocornut
daaf0e4ef3
Fonts: Added PushFontSize(), PopFontSize() api. Added font_size param to PushFont() as well.
...
Fonts: Fixed PopFont() recovery.
(To squash into "Added PushFontSize(), PopFontSize() api."
2025-06-11 15:46:28 +02:00
ocornut
80404fae30
Fonts: clarify ClearTexData() as not supported with dynamic atlases.
2025-06-11 15:46:28 +02:00
ocornut
093d01269a
Fonts: Baked system, with auto-bind, v10.
...
# Conflicts:
# imgui_internal.h
2025-06-11 15:46:27 +02:00
ocornut
7aba8da551
(Breaking) Fonts: CalcWordWrapPositionA() -> CalcWordWrapPosition(), takes size instead of scale as this will be needed.
2025-06-11 15:45:22 +02:00
ocornut
a2371ef90b
Internals: added ImStableVector<> helper.
2025-06-11 15:45:14 +02:00
ocornut
fb69a09d6e
Fonts: Fixed leak due to indirectly recursing ImFontAtlasPackInit().
2025-06-11 15:45:14 +02:00
ocornut
c5653d5f34
Fonts: stb_truetype loader: Reworked scale handling to suggest this is not required caching.
2025-06-11 15:45:14 +02:00
ocornut
b203ac1e0d
Fonts: Reduced reliance on ImFontConfig::DstFont.
2025-06-11 15:45:14 +02:00
ocornut
722f6013ff
Fonts: Added a bit of user facing tooling.
2025-06-11 15:45:14 +02:00
ocornut
bd19bc5085
Fonts: Removed BuildClearGlyphs(), conflated with ClearOutputData()
2025-06-11 15:45:14 +02:00
ocornut
2bf6552f2f
Fonts: Fixed/improved support for legacy backend. SetTexID() writes into our ImTextureData to keep the indirection, clear TexIsBuilt.
...
The idea is that a legacy backend can somehow add a if (!atlas->IsBuilt()) ImGui_ImplXXXXX_CreateFontsTexture() call _after_ Render() and some features are supported.
2025-06-11 15:45:14 +02:00
ocornut
ba62becb7d
(Breaking) Fonts: remove ImFontAtlasCustomRect which is now the same as ImTextureRect
2025-06-11 15:45:08 +02:00
ocornut
a509790a1c
Fonts: Added back support for AddCustomRectFontGlyph()
...
Legacy path naturally works.
2025-06-11 15:45:08 +02:00
ocornut
953ce90d27
Fonts: ImFontAtlasBuildInit() uses the occasion to sync HasTexUpdates from imgui context, narrowing the scope where it isn't set.
2025-06-11 15:45:07 +02:00
ocornut
288055180e
Fonts: Comments, remove ImFontAtlas facing BuildGrowTexture(), BuildCompactTexture(). Make IsBuilt() obsolete.
2025-06-11 15:45:07 +02:00
ocornut
8ed4e2dde7
Fonts: Basic heuristic to repack instead of growing. Moved rects count/surface to internals.
2025-06-11 15:45:07 +02:00
ocornut
2137b3448b
Textures: Added atlas's TexMinWidth/TexMinHeight/TexMaxWidth/TexMaxHeight.
...
Fixed ImFontAtlasBuildGetTextureSizeEstimate().
Basic error handling on OOM.
2025-06-11 15:45:01 +02:00
ocornut
14614f561b
Textures: Ensure UpdateBox is set on texture _WantCreate state too.
2025-06-11 15:45:01 +02:00
ocornut
b06f3c6d1d
Fonts: turn public facing BuildRegisterGlyph() into ImFontAtlasBuildAddFontGlyph() thats sets up UV.
2025-06-11 15:44:38 +02:00
ocornut
4ff1631b31
Fonts: Rasterizing ellipsis character from dot as one glyph + avoid preloading if it not needed.
...
# Conflicts:
# imgui.cpp
2025-06-11 15:44:37 +02:00
ocornut
a2bc3d81c2
Fonts: Fixed support for multiple contexts.
2025-06-11 15:43:07 +02:00
ocornut
cec3e945f0
Fonts: added ImFontAtlas::RemoveFont(), fixed various leaks.
2025-06-11 15:43:07 +02:00
ocornut
df8450d928
Fonts: marked ImFontAtlas::Build() as obsolete
2025-06-11 15:43:07 +02:00
ocornut
4399599de9
Fonts: ClearCache(), ImFontAtlasBuildGetTextureSizeEstimate(), tweak clearing functions.
2025-06-11 15:43:06 +02:00
ocornut
ef1521b472
Fonts: fix for password fields
2025-06-11 15:43:06 +02:00
ocornut
a51a26e2aa
Fonts: use a structure for post-processing - easier to pass things around and iterate on.
2025-06-11 15:43:06 +02:00
ocornut
553b1c301d
Fonts: repack without full reload, discard rectangle, fixed CustomRect api with stable id, remove public BuildInit().
2025-06-11 15:43:01 +02:00
ocornut
a6c7801926
Fonts: Measured and tweaked CalcTextSize() computation to minimize cost in our stress tests.
2025-06-11 15:42:55 +02:00
ocornut
076a1ab85c
Fonts: Misc amends, remove _PackNodesFactor, comments.
2025-06-11 15:42:54 +02:00
ocornut
ac13683c26
Fonts: ImFontAtlas accept DrawListSharedData not being set.
2025-06-11 15:42:54 +02:00
ocornut
43cc3fc8b1
Fonts: optimization bake FallbackAdvanceX into IndexAdvanceX[].
2025-06-11 15:42:54 +02:00
ocornut
4f27792ffe
(Breaking) Removed atlas->TexDesiredWidth now unnecessary (github 327)
2025-06-11 15:42:54 +02:00
ocornut
b670f799d5
Fonts: use TexGlyphPadding. Fixed packing issues. Removed old code.
2025-06-11 15:41:21 +02:00
ocornut
0f553c57bd
Fonts: AddFont() actually does the work, so we can handle errors & return an accurate return value.
2025-06-11 15:41:21 +02:00
ocornut
1269467fa0
imgui_freetype: Removing old code.
2025-06-11 15:41:16 +02:00
ocornut
08e1e7681e
imgui_freetype: Added Freetype implementation for new architecture.
2025-06-11 15:41:16 +02:00
thedmd
26c017d5ea
Backends: Metal: added ImGuiBackendFlags_RendererHasTextures support.
...
# Conflicts:
# backends/imgui_impl_metal.h
# backends/imgui_impl_metal.mm
2025-06-11 15:41:05 +02:00