ocornut
3109131a88
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_glfw.cpp
# backends/imgui_impl_glfw.h
# imgui.cpp
# imgui_internal.h
2025-11-06 18:11:16 +01:00
ocornut
dacd080639
Docs: added link to imgui-module. (#8868(
2025-11-06 17:30:00 +01:00
ocornut
42015f7194
Merge branch 'master' into docking
...
incl/ viewport fix for #9054
2025-11-05 19:18:46 +01:00
Brenton Bostick
a3546b52f8
Various typo fixes ( #9042 )
2025-11-03 13:26:12 +01:00
ocornut
db577cd445
Fonts: rename internal fields for consistency.
2025-10-31 16:38:23 +01:00
ocornut
1d942eb6c9
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_win32.cpp
# imgui.cpp
# imgui_demo.cpp
# imgui_internal.h
2025-10-30 18:08:56 +01:00
ocornut
a1632c6116
InputText, Demo: amend comments to direct more users to the std::string version.
...
https://www.youtube.com/watch?v=pLwvNdpTpjs wasted a solid hour before finding this.
Crazy that people are using AI instead of actually _reading_ comments, demo and headers. (The information appeared multiple times on their screen)
2025-10-24 17:10:57 +02:00
ocornut
f9571ce4d3
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_dx12.cpp
# docs/CHANGELOG.txt
# imgui.cpp
2025-10-13 15:13:06 +02:00
ocornut
bee2720faa
Docs: clarify meaning/purpose of IMGUI_ENABLE_FREETYPE. ( #8993 )
2025-10-08 18:44:07 +02:00
ocornut
e285ecca09
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_dx10.cpp
# backends/imgui_impl_dx11.cpp
# backends/imgui_impl_dx12.cpp
# backends/imgui_impl_dx9.cpp
# backends/imgui_impl_glfw.cpp
# backends/imgui_impl_metal.mm
# backends/imgui_impl_opengl2.cpp
# backends/imgui_impl_opengl3.cpp
# backends/imgui_impl_osx.mm
# backends/imgui_impl_sdl2.cpp
# backends/imgui_impl_sdl3.cpp
# backends/imgui_impl_sdlgpu3.cpp
# backends/imgui_impl_vulkan.cpp
# backends/imgui_impl_win32.cpp
# docs/CHANGELOG.txt
# imgui.cpp
# imgui.h
2025-09-24 14:54:46 +02:00
ocornut
46e6382b69
Added type formatters for the LLDB debuggers (e.g. Xcode, Android Studio) ( #8950 )
2025-09-22 12:26:53 +02:00
David Mentler
087fbf08f6
Added type formatters for the LLDB debuggers (e.g. Xcode) ( #8950 )
2025-09-22 12:25:17 +02:00
ocornut
160e3683ab
Merge branch 'master' into docking
2025-08-13 17:31:15 +02:00
Wouter Vermaelen
863e989c25
imgui_freetype.cpp: fix gcc -Wmissing-declarations ( #8879 )
2025-08-11 19:39:26 +02:00
ocornut
c99ac2451f
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_glfw.cpp
# backends/imgui_impl_sdl2.cpp
# backends/imgui_impl_vulkan.cpp
2025-07-08 17:25:22 +02:00
Matthew Pohlmann
0448428322
Fonts: Change ImFontConfig::FontNo back to int from S8 ( #8775 )
...
When used with FreeType this value is passed as `face_index` which needs to be 32-bits.
# Conflicts:
# docs/CHANGELOG.txt
2025-07-05 19:25:45 +02:00
ocornut
92e2df5978
Merge branch 'master' into docking
2025-06-30 21:18:46 +02:00
ocornut
fd75bdccb0
Fonts: for large size fonts, layout/size calculation only load glyphs metrics. Actual glyphs are renderer+packed when used by drawing functions. ( #8758 , #8465 )
...
(Breaking) breaks signature of ImFontLoader::FontBakedLoadGlyph, sorry.
2025-06-30 21:16:20 +02:00
ocornut
b7e5d76c79
Fonts: added ImFontAtlas::SetFontLoader() to dynamically change font loader at runtime without using internal API. ( #8752 , #8465 )
2025-06-30 20:01:02 +02:00
ocornut
c2c38beec8
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_glfw.cpp
# backends/imgui_impl_glfw.h
2025-06-18 16:55:20 +02:00
ocornut
c56e8b4964
imgui_freetype: fixed NULL that creeped in instead of nullptr.
2025-06-18 15:31:00 +02:00
ocornut
344d5ff4b7
Merge branch 'master' into docking
2025-06-17 20:15:12 +02:00
Pascal Thomet
842837e35b
imgui_freetype: fix conversion null -> bool in FontBakedLoadGlyph ( #8696 )
2025-06-16 18:36:33 +02:00
ocornut
7d70c0ff9f
Merge branch 'master' into docking
2025-06-11 20:53:33 +02:00
ocornut
7a42233d43
imgui_freetype: fixed using legacy names.
2025-06-11 20:47:17 +02:00
ocornut
6af6cec23f
Merge branch 'master_fonts' into docking
...
# Conflicts:
# backends/imgui_impl_dx10.cpp
# backends/imgui_impl_dx10.h
# backends/imgui_impl_dx11.cpp
# backends/imgui_impl_dx12.cpp
# backends/imgui_impl_dx9.cpp
# backends/imgui_impl_glfw.cpp
# backends/imgui_impl_metal.h
# backends/imgui_impl_metal.mm
# backends/imgui_impl_opengl2.cpp
# backends/imgui_impl_opengl2.h
# backends/imgui_impl_opengl3.cpp
# backends/imgui_impl_opengl3.h
# backends/imgui_impl_sdl2.cpp
# backends/imgui_impl_sdl3.cpp
# backends/imgui_impl_sdlgpu3.cpp
# backends/imgui_impl_sdlgpu3.h
# backends/imgui_impl_vulkan.cpp
# examples/example_glfw_opengl3/main.cpp
# examples/example_sdl2_directx11/main.cpp
# examples/example_sdl2_opengl2/main.cpp
# examples/example_sdl2_opengl3/main.cpp
# examples/example_sdl2_vulkan/main.cpp
# examples/example_sdl3_opengl3/main.cpp
# examples/example_sdl3_sdlgpu3/main.cpp
# examples/example_sdl3_vulkan/main.cpp
# examples/example_win32_directx10/main.cpp
# examples/example_win32_directx11/main.cpp
# examples/example_win32_directx12/main.cpp
# examples/example_win32_directx9/main.cpp
# imgui.cpp
# imgui.h
# imgui_demo.cpp
# imgui_internal.h
2025-06-11 18:07:19 +02:00
ocornut
cc3d4cab21
(Breaking) renamed ImFontConfig::FontBuilderFlags -> FontLoaderFlags. ImFontAtlas::FontBuilderFlags -> FontLoaderFlags. ImGuiFreeTypeBuilderFlags -> ImGuiFreeTypeLoaderFlags.
2025-06-11 16:42:31 +02:00
ocornut
02f58b3207
Fonts: AddFont() functions now allow size_pixels==0.0f (only required when using certain functions)
...
Fonts: AddFont() funcitons allow size_pixels==0 for merged fonts.
2025-06-11 16:24:48 +02:00
ocornut
59a11363a5
Fonts: ground work for allowing SizePixels to be optional.
2025-06-11 16:06:24 +02:00
ocornut
92ff153763
Fonts: added notes/comments and dummy type about renaming ImFontBuilderIO::GetBuilderForFreeType() to ImFontLoader::GetFontLoader().
2025-06-11 16:02:10 +02:00
ocornut
8523cbdf58
Fonts: rework ImFontLoader::FontBakedLoadGlyph() interface
2025-06-11 15:57:35 +02:00
ocornut
4dec946ae6
Fonts: don't pretend to half recover from OOM for now + debug log filename on load failure.
2025-06-11 15:57:35 +02:00
ocornut
b32ef3c05d
Fonts: make RasterizerDensity a dynamic field. (temporarily exposed as SetFontRasterizerDensity()).
...
# Conflicts:
# imgui.cpp
# imgui.h
2025-06-11 15:57:35 +02:00
ocornut
42e7bb80b6
imgui_freetype: removed anonymous namespace + extracting two functions outside of ImGui_ImplFreeType_FontSrcData.
2025-06-11 15:57:28 +02:00
ocornut
6a455e1281
imgui_freetype: moving data out of ImGui_ImplFreeType_FontSrcData.
...
The reasoning behind that we would ideally transition ImGui_ImplFreeType_FontSrcData to be shared between fonts using same source.
2025-06-11 15:57:28 +02:00
ocornut
2b0d49a905
Fonts: make ImFont::Sources a vector.
...
Later it should become a ImSpan<>
2025-06-11 15:57:23 +02:00
ocornut
b12c42e75d
Fonts: change uses of ImFontAtlasRect to ImTextureRect for simplicity.
2025-06-11 15:52:12 +02:00
ocornut
144f444217
Fonts: fixed memory leaks, shutting down font loader, and on AddFont() failure in FreeType backend.
2025-06-11 15:52:12 +02:00
ocornut
8ea0ae454f
Fonts: fixed a bug using size specified by secondary font sources.
2025-06-11 15:52:12 +02:00
ocornut
41a0e991f0
Fonts: Added UI to edit FreeType loader flags. Added ImFontAtlasBuildReloadAll() / ImFontAtlasBuildReloadFont()
2025-06-11 15:51:56 +02:00
ocornut
78a17038c2
imgui_freetype: no need to store metrics locally.
2025-06-11 15:47:49 +02:00
ocornut
18c8a93cca
Fonts: Rework ImFontLoader signatures.
...
InitBaked may return false to signify this size is not supported.
2025-06-11 15:47:49 +02:00
ocornut
1cfc0de31d
Fonts: Core allocates per-baked-per-src backend buffers, to allow having custom backend per font source. Backend BakedInit/Destroy/AddGlyph process a single source.
2025-06-11 15:47:41 +02:00
ocornut
76b252f80a
Fonts: Added ImFontAtlasBakedSetFontGlyphBitmap().
2025-06-11 15:47:41 +02:00
ocornut
92993e68c8
Fonts: Baked system, fix subsequent sources overriding shared font metrics.
2025-06-11 15:47:41 +02:00
ocornut
815553c4b4
Fonts: ImFontConfig: added GlyphExcludeRanges[].
2025-06-11 15:47:35 +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
093d01269a
Fonts: Baked system, with auto-bind, v10.
...
# Conflicts:
# imgui_internal.h
2025-06-11 15:46:27 +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
b06f3c6d1d
Fonts: turn public facing BuildRegisterGlyph() into ImFontAtlasBuildAddFontGlyph() thats sets up UV.
2025-06-11 15:44:38 +02:00