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
|
fad5280d4c
|
Fonts: fixed broken support for legacy backend due to a mismatch with initial pre-build baked id.
|
2025-06-11 15:57:44 +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
|
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
|
8140a9d8a6
|
Fonts: comments on ImTextureData fields.
|
2025-06-11 15:57:35 +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
|
e7efe94fd2
|
Fonts: shallow rework of ImFontAtlasBakedAddFontGlyph() to facilitate upcoming change.
|
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
|
ed2bb2cff0
|
Fonts: encode additional data in ImFontAtlasRectId to detect invalid id + added Rects debug browser.
|
2025-06-11 15:56:39 +02:00 |
|
ocornut
|
12599da53d
|
Fonts: do not mark whole ImTextureData struct as IMGUI_API to fix warning when used in ImVector<> (8559)
|
2025-06-11 15:56:38 +02:00 |
|
ocornut
|
1ea9ff3677
|
Fonts: add optional out parameter to AddCustomRect()
|
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
|
db30e1b5b6
|
(Breaking) Fonts: rework GetCustomRect() api. Reintroduce ImFontAtlasRect.
|
2025-06-11 15:55:51 +02:00 |
|
ocornut
|
f40274702d
|
(Breaking) Fonts: renamed AddCustomRectRegular() -> AddCustomRect().
|
2025-06-11 15:55:51 +02:00 |
|
ocornut
|
253dff7656
|
Fonts: Comments.
|
2025-06-11 15:55:38 +02:00 |
|
ocornut
|
44498825cd
|
(Breaking) Fonts: PushFont() default to preserve current font size.
|
2025-06-11 15:54:53 +02:00 |
|
ocornut
|
5460903f96
|
Fonts: awkwardly alias old TexID name to TexRef using an union (may backtrack and just keep old name)
|
2025-06-11 15:54:26 +02:00 |
|
ocornut
|
a548cd9934
|
Fonts: avoid both ImTextureRef fields being set simultaneously.
|
2025-06-11 15:54:12 +02:00 |
|
ocornut
|
0fff7ceda4
|
Fonts: comments, tweaks, minor amends.
Comments, tweaks
|
2025-06-11 15:53:42 +02:00 |
|
ocornut
|
e41bf16ff1
|
Fonts: fixed ImTextureID() being zero-cleared instead of using ImTextureUserID_Invalid. .
|
2025-06-11 15:53:42 +02:00 |
|
ocornut
|
8bd1fc4f04
|
Textures: Added ImTextureRef::GetTexID() mostly for consistency.
Without it the logic may seem more confusing to grok for end-user.
|
2025-06-11 15:53:42 +02:00 |
|
ocornut
|
41517bca0c
|
(Breaking) Fonts: renamed CalcCustomRectUV() to GetCustomRectUV() for simplicity.
|
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
|
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
|
c98e3c0eff
|
Fonts: ImFontConfig::GlyphExcludeRanges is owner and copied.
|
2025-06-11 15:51:56 +02:00 |
|
ocornut
|
da51485e17
|
Fonts: Obsolete GetGlyphRangesXXX() functions. Update font documentation.
|
2025-06-11 15:51:56 +02:00 |
|
ocornut
|
93410c47e1
|
Fonts: Fixed various small warnings / build issues.
|
2025-06-11 15:51:56 +02:00 |
|
ocornut
|
dec8d3863a
|
Fonts: Added a ImFontFlags_NoLoadError flag to let user code try file paths. (3611)
|
2025-06-11 15:51:56 +02:00 |
|
ocornut
|
e98a314e06
|
Textures: Added ImTextureData::UsedRect.
# Conflicts:
# imgui_internal.h
|
2025-06-11 15:51:19 +02:00 |
|
ocornut
|
ef6beaeff6
|
Fonts: removed LockSingleSrcConfigIdx which isn't needed anymore since we don't load glyphs in ImFontAtlasBuildAddFont().
|
2025-06-11 15:47:49 +02:00 |
|
ocornut
|
d8a612f73b
|
Fonts: Fallback glyph is now lazily loaded on demand (yay!). Moving ImFontBaked:: functions outside of class.
|
2025-06-11 15:47:49 +02:00 |
|
ocornut
|
c06a7585a3
|
Fonts: A font source can specify its own loader/backend.
|
2025-06-11 15:47:41 +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
|
d59f10d7f5
|
Fonts: reinstated ImFontAtlasBuildSetupFontCreateEllipsisFromDot() compatible with baked system, lazily baked.
|
2025-06-11 15:47:41 +02:00 |
|
ocornut
|
dc1320df64
|
Fonts: ImFontFlags: ImFontFlags_NoLoadGlyphs + add ImFontFlags_LockBakedSizes
|
2025-06-11 15:47:41 +02:00 |
|
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
|
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
|
57d345ff80
|
Textures: Comments around ImTextureID type.
|
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
|
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 |
|