ocornut
|
1b51a88bba
|
Fonts: moved compare operators to internal. Removed commented out ones aimed legacy backends: not needed anymore since we didn't rename ImTextureID.
|
2025-06-11 15:59:20 +02:00 |
|
ocornut
|
39f6c793b3
|
Fonts: proof of concept support for user textures.
# Conflicts:
# imgui.h
# imgui_internal.h
|
2025-06-11 15:59:19 +02:00 |
|
ocornut
|
91ed6e67b4
|
Fonts: fixed support for multiple atlases.
Moved FontAtlasOwnedByContext to OwnerContext
# Conflicts:
# imgui.cpp
# imgui_internal.h
|
2025-06-11 15:58:29 +02:00 |
|
ocornut
|
65e6039979
|
Fonts: remove unnecessary ImDrawListSharedData::FontAtlas which is actually getting in the way of using multiple atlases.
|
2025-06-11 15:57:44 +02:00 |
|
ocornut
|
46fa9e8efb
|
Fonts: Debug display status. Fixed truncated raw texture id. Fixed FormatTextureIDForDebugDisplay(). Comments.
|
2025-06-11 15:57:35 +02:00 |
|
ocornut
|
f6735c223c
|
Fonts: remove ImFontHooks in favor of a AddRemapChar() implementation.
|
2025-06-11 15:57:35 +02:00 |
|
ocornut
|
89e880dfd1
|
Fonts: adding ImFontHooks for codepoint remapping.
|
2025-06-11 15:57:35 +02:00 |
|
ocornut
|
8523cbdf58
|
Fonts: rework ImFontLoader::FontBakedLoadGlyph() interface
|
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
|
5310f5fba3
|
Fonts: rework toward reducing reliance on ImFontConfig::DstFont since we ought to separate them.
|
2025-06-11 15:57:23 +02:00 |
|
ocornut
|
890fff92fd
|
Fonts: rename many internal functions for consistency. No other changes.
|
2025-06-11 15:57:23 +02:00 |
|
ocornut
|
c4fa9bb61f
|
Fonts: add ImFontGlyph::SourceIdx. Extract code out of DebugNodeFont() into DebugNodeFontGlyphesForSrcMask().
(src_mask unused in this commit)
|
2025-06-11 15:57:23 +02:00 |
|
ocornut
|
bcd1a94b89
|
Fonts: Extract ImFontAtlasBuildGetFontBaked() out of ImFont::GetFontBaked() mostly for consistency with upcoming changes + tweak locals in AddFont().
|
2025-06-11 15:57:23 +02:00 |
|
ocornut
|
7840e453b5
|
Fonts: ImFontAtlasBuildInit() is always called with atlas->Builder == NULL.
|
2025-06-11 15:57:23 +02:00 |
|
ocornut
|
c43b138a69
|
Fonts: no need to load current baked on SkipItems window? + removed unused field.
Avoid baked staying active after GC. Might cause issues.
# Conflicts:
# imgui.cpp
|
2025-06-11 15:56:59 +02:00 |
|
ocornut
|
ed2bb2cff0
|
Fonts: encode additional data in ImFontAtlasRectId to detect invalid id + added Rects debug browser.
|
2025-06-11 15:56:39 +02:00 |
|
ocornut
|
0436fba13c
|
Fonts: fixed compaction gc-ing baked fonts used in the current frame + rename.
|
2025-06-11 15:56:39 +02:00 |
|
ocornut
|
fb5c537080
|
Fonts: changing loader/backend or loader flags may be done without losing custom rects. Sharing more code.
|
2025-06-11 15:56:38 +02:00 |
|
ocornut
|
526a5d0f8a
|
Fonts: tidying up.
|
2025-06-11 15:56:24 +02:00 |
|
ocornut
|
23dc46c4f8
|
Fonts: added RemoveCustomRect().
+ internally add ImFontAtlasPackReuseRectEntry()
|
2025-06-11 15:56:24 +02:00 |
|
ocornut
|
e9cf3de58f
|
Fonts: moved ImFontAtlasRectId back to public API.
|
2025-06-11 15:56:24 +02:00 |
|
ocornut
|
69d28f867c
|
Fonts: added ImFontAtlasRectId_Invalid == -1
|
2025-06-11 15:56:24 +02:00 |
|
ocornut
|
253dff7656
|
Fonts: Comments.
|
2025-06-11 15:55:38 +02:00 |
|
ocornut
|
168b97c291
|
Fonts: removed size rounding in AddFont() which breaks relative sizing of merged fonts (8502)
# Conflicts:
# imgui.cpp
|
2025-06-11 15:54:52 +02:00 |
|
ocornut
|
cc65015e4e
|
Fonts: fixed crashing password fields.
# Conflicts:
# imgui_internal.h
|
2025-06-11 15:53:41 +02:00 |
|
ocornut
|
4048494aa1
|
Fonts: rename ImFontAtlasBuildClearTexture() to ImFontAtlasBuildClear().
|
2025-06-11 15:52:21 +02:00 |
|
ocornut
|
f816b861fc
|
(Breaking) Fonts: rename GetCustomRectByIndex() to GetCustomRect(). Made return struct const.
|
2025-06-11 15:52:12 +02:00 |
|
ocornut
|
85d0507580
|
Fonts: narrowed invalid value for ImFontAtlasRectId to -1 a we will change implementation.
|
2025-06-11 15:52:12 +02:00 |
|
ocornut
|
b12c42e75d
|
Fonts: change uses of ImFontAtlasRect to ImTextureRect for simplicity.
|
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
|
40f988ce2a
|
Fonts: in ShowFontAtlas() preserve open-state for latest texture. Improve debug display.
|
2025-06-11 15:51:56 +02:00 |
|
ocornut
|
c98e3c0eff
|
Fonts: ImFontConfig::GlyphExcludeRanges is owner and copied.
|
2025-06-11 15:51:56 +02:00 |
|
ocornut
|
161e222322
|
Fonts: GetFontBaked() default to searching for closest size font.
|
2025-06-11 15:51:30 +02:00 |
|
ocornut
|
e98a314e06
|
Textures: Added ImTextureData::UsedRect.
# Conflicts:
# imgui_internal.h
|
2025-06-11 15:51:19 +02:00 |
|
ocornut
|
2bf6879dae
|
Fonts: tidying up font scale logic.
# Conflicts:
# imgui_internal.h
|
2025-06-11 15:51:18 +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
|
8a8d8a7b38
|
Fonts: Exposed CompactCache(). Hide ClearCache().
|
2025-06-11 15:47:35 +02:00 |
|
ocornut
|
815553c4b4
|
Fonts: ImFontConfig: added GlyphExcludeRanges[].
|
2025-06-11 15:47:35 +02:00 |
|
ocornut
|
df694c89b0
|
Fonts: Baked system, v11.
|
2025-06-11 15:47:17 +02:00 |
|
ocornut
|
3ce753c489
|
Fonts: Debug dump to disk, debug log.
|
2025-06-11 15:47:00 +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
|
093d01269a
|
Fonts: Baked system, with auto-bind, v10.
# Conflicts:
# imgui_internal.h
|
2025-06-11 15:46:27 +02:00 |
|
ocornut
|
a2371ef90b
|
Internals: added ImStableVector<> helper.
|
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
|
a509790a1c
|
Fonts: Added back support for AddCustomRectFontGlyph()
Legacy path naturally works.
|
2025-06-11 15:45:08 +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 |
|