Commit Graph

  • 35a8f1c524 WIP - Fonts: no need to load current baked on SkipItems window? + removed unused field. ocornut 2025-04-17 15:00:35 +0200
  • 6f75f1a5db WIP - Fonts: packing of shared basic/line/cursor data uses more public API. ocornut 2025-04-14 16:20:31 +0200
  • ad61454a94 WIP - Fonts: encode additional data in ImFontAtlasRectId to detect invalid id + added Rects debug browser. ocornut 2025-04-11 17:16:06 +0200
  • 8fe4560edb WIP - Fonts: fixed compaction gc-ing baked fonts used in the current frame + rename. ocornut 2025-03-31 22:38:05 +0200
  • 1a3e52fd4e WIP - Fonts: misc tidying up. ocornut 2025-04-09 17:16:40 +0200
  • 5dee14c33c WIP - Fonts: internal rendering uses higher level functions. ocornut 2025-04-07 18:42:06 +0200
  • 054595a28a WIP - Fonts: do not mark whole ImTextureData struct as IMGUI_API to fix warning when used in ImVector<> (8559) ocornut 2025-04-09 15:16:59 +0200
  • cd2e6bac30 WIP - Fonts: changing loader/backend or loader flags may be done without losing custom rects. Sharing more code. ocornut 2025-04-03 19:10:16 +0200
  • e792f14a76 WIP - Fonts: tidying up. ocornut 2025-04-02 15:10:11 +0200
  • 8c78ea9ead WIP - Fonts: add optional out parameter to AddCustomRect() ocornut 2025-03-31 22:18:42 +0200
  • 6f72ec45ab WIP - Fonts: GC Compact All exposed in Metrics->Memory Allocations includes compacting texture data. ocornut 2025-03-31 21:43:15 +0200
  • 14c3105f9a WIP - Fonts: added RemoveCustomRect(). ocornut 2025-03-31 19:24:59 +0200
  • a05ed51bcf WIP - Fonts: moved ImFontAtlasRectId back to public API. ocornut 2025-03-31 18:37:11 +0200
  • 2af16b3218 WIP - Fonts: added ImFontAtlasRectId_Invalid == -1 ocornut 2025-03-31 18:36:32 +0200
  • 8c6c055300 WIP - Fonts: (Breaking) rework GetCustomRect() api. Reintroduce ImFontAtlasRect. ocornut 2025-03-31 17:36:24 +0200
  • 985593996a WIP - Fonts: (Breaking) renamed AddCustomRectRegular() -> AddCustomRect(). ocornut 2025-03-31 17:03:03 +0200
  • e8d08b5ab7 WIP - Fonts: Comments. ocornut 2025-03-30 16:00:29 +0200
  • 41c5e3c554 WIP - Fonts: fixed GetCustomRectUV(). ocornut 2025-03-22 15:15:10 +0100
  • f1c15997f4 WIP - Fonts: fixed calling AddFontXXX not invalidating texture for legacy backends. ocornut 2025-03-26 14:38:49 +0100
  • f5e0883fd2 WIP - (Breaking) Fonts: PushFont() default to preserve current font size. ocornut 2025-03-21 19:13:23 +0100
  • 29c3362026 WIP - Fonts: Tools: added option to hide font preview text. Move code. ocornut 2025-03-21 17:55:04 +0100
  • c38a93909c WIP - Fonts: removed size rounding in AddFont() which breaks relative sizing of merged fonts (8502) ocornut 2025-03-20 15:45:27 +0100
  • a27bf958a6 WIP - Fonts: fixed legacy backend path preloading all sources sizes erroneously + failing to use ellipsis. ocornut 2025-03-20 15:44:35 +0100
  • b1d8041273 WIP - Fonts: awkwardly alias old TexID name to TexRef using an union (may backtrack and just keep old name) ocornut 2025-03-19 20:12:02 +0100
  • 39b08ea6ad WIP - Fonts: detect if backend assign to texture on creation but doesn't update Status. ocornut 2025-03-19 19:57:03 +0100
  • bc1c9f7ebf WIP - Fonts: avoid both ImTextureRef being set simultaneously. ocornut 2025-03-19 15:00:13 +0100
  • 257632681e WIP - Fonts: comments, tweaks, minor amends. ocornut 2025-03-19 14:06:08 +0100
  • c95fcd161a WIP - Fonts: fixed ImTextureID() being zero-cleared instead of using ImTextureUserID_Invalid. . ocornut 2025-03-18 18:03:40 +0100
  • 9c5a954245 WIP - Fonts: Fixed PopFont() recovery. ocornut 2025-03-17 23:19:22 +0100
  • 961bccbca2 WIP - Fonts: Added ImTextureRef::GetTexID() mostly for consistency. ocornut 2025-03-17 22:08:58 +0100
  • 9b6aec867d WIP - Fonts: fixed crashing password fields. ocornut 2025-03-17 17:18:05 +0100
  • 31e4ece921 WIP - (Breaking) Fonts: renamed CalcCustomRectUV() to GetCustomRectUV() for simplicity. ocornut 2025-03-13 19:14:10 +0100
  • 6bb446eb1f WIP - Fonts: rename ImFontAtlasBuildClearTexture() to ImFontAtlasBuildClear() ocornut 2025-03-13 17:28:13 +0100
  • 6ba0abd101 WIP - (Breaking) Fonts: rename GetCustomRectByIndex() to GetCustomRect(). Made return struct const. ocornut 2025-03-13 17:10:52 +0100
  • dc850196a4 WIP - Fonts: narrowed invalid value for ImFontAtlasRectId to -1 a we will change implementation. ocornut 2025-03-13 16:54:39 +0100
  • e01f5bb68c WIP - Fonts: change uses of ImFontAtlasRect to ImTextureRect for simplicity. ocornut 2025-03-13 16:50:19 +0100
  • 6d0ab3c77f WIP - Fonts: fixed implicit init when calling AddCustomRectRegular(). LoaderShutdown match BuildDestroy. ocornut 2025-03-13 16:30:20 +0100
  • a5fda5ef08 WIP - Fonts: fixed an issue calling legacy ImFontAtlas::Clear(). ocornut 2025-03-11 19:54:33 +0100
  • 0945089927 WIP - Fonts: fixed memory leaks, shutting down font loader, and on AddFont() failure in Freetype backend. ocornut 2025-03-11 11:46:18 +0100
  • ee4b1019a5 WIP - ImTextureData pixels are not immediately destroyed on setting ImTextureStatus_WantDestroy. ocornut 2025-03-10 10:55:29 +0100
  • 60c2d65903 WIP - Fonts: fixed a bug using size specified by secondary font sources. ocornut 2025-03-09 21:36:44 +0100
  • a03d01652a WIP - Exposed some basic UI in demo for sanity. ocornut 2025-03-06 20:50:00 +0100
  • dc76df2e28 WIP - Added UI to edit FreeType loader flags. Added ImFontAtlasBuildReloadAll() / ImFontAtlasBuildReloadFont() ocornut 2025-03-06 20:34:18 +0100
  • c66677ce95 WIP - In ShowFontAtlas() preserve open-state for latest texture. Improve debug display. ocornut 2025-03-06 19:57:49 +0100
  • b1c401f985 WIP - ImFontConfig::GlyphExcludeRanges is owner and copied. ocornut 2025-03-06 18:39:32 +0100
  • 4b12c60dc3 WIP - Update font documenttion. ocornut 2025-03-06 18:15:34 +0100
  • e8b6ec7fc1 WIP - Obsolete GetGlyphRangesXXX() functions. ocornut 2025-03-06 18:15:25 +0100
  • 07c631408a WIP - Fixed various small warnings / build issues. ocornut 2025-03-05 18:42:41 +0100
  • 0c0a7b77db WIP - Added a ImFontFlags_NoLoadError flag to let user code try file paths. (3611) ocornut 2025-03-05 20:08:00 +0100
  • 010440bbf6 WIP - Detect when using a texture that's about to be destroyed. ocornut 2025-03-05 17:18:54 +0100
  • cb0bac272f WIP - Demo: Add a "Fonts" section for visibility. ocornut 2025-03-05 17:05:24 +0100
  • 409da053c1 WIP - GetFontBaked() default to searching for closest size font. ocornut 2025-03-03 16:14:41 +0100
  • 14b1f0c854 WIP - Added ImTextureData::UsedRect. ocornut 2025-02-19 15:41:26 +0100
  • 2b54a6ecba WIP - Tidying up font scale logic. ocornut 2025-02-19 15:16:19 +0100
  • 8bb386b64a WIP - Removed LockSingleSrcConfigIdx which isn't needed anymore since we don't load glyphs in ImFontAtlasBuildAddFont(). ocornut 2025-02-10 22:53:33 +0100
  • 33326c024a WIP - Fallback glyph is now lazily loaded on demand (yay!). Moving ImFontBaked:: functions outside of class. ocornut 2025-02-10 22:32:09 +0100
  • 4794ac2a25 WIP - imgui_freetype: no need to store metrics locally. ocornut 2025-02-10 15:09:46 +0100
  • f8f61b5391 WIP - Rework ImFontLoader signatures. ocornut 2025-02-07 18:48:01 +0100
  • 190c0a72bd WIP - A font source can specify its own loader/backend. ocornut 2025-02-06 19:31:13 +0100
  • 1a5b600bf3 WIP - Core allocates per-baked-per-src backend buffers, to allow having custom backend per font source. Backend BakedInit/Destroy/AddGlyph process a single source. ocornut 2025-02-06 15:19:23 +0100
  • edcd03d518 WIP - Reinstated ImFontAtlasBuildSetupFontCreateEllipsisFromDot() compatible with baked system, lazily baked. ocornut 2025-02-07 15:58:16 +0100
  • 7228867942 WIP - Added ImFontAtlasBakedSetFontGlyphBitmap(). ocornut 2025-02-07 14:51:37 +0100
  • 883c2cc8ba WIP - Baked system, fix subsequent sources overriding shared font metrics. ocornut 2025-02-06 13:06:05 +0100
  • 838408ad6a WIP - ImFontFlags: ImFontFlags_NoLoadGlyphs + add ImFontFlags_LockBakedSizes ocornut 2025-02-06 11:57:30 +0100
  • af64ae56e6 WIP - Exposed CompactCache(). Hide ClearCache(). ocornut 2025-02-05 18:25:52 +0100
  • f839585969 WIP - Restore a functional AddCustomRectFontGlyph(). ocornut 2025-02-05 17:51:46 +0100
  • 33feb36c0a WIP - ImFontConfig: added GlyphExcludeRanges ocornut 2025-02-05 14:41:59 +0100
  • 8155f5d2fe WIP - Create a fallback glyph if none is available (fix crash on fonts with no fallback) ocornut 2025-02-05 14:04:05 +0100
  • 1bd5a40f21 WIP - Fixed _OnChangedTextureID() asserting when calling on e.g. finalized drawlists. ocornut 2025-02-04 20:02:10 +0100
  • 0287137202 WIP - PushFontSize() with -1 uses sources[0]'s size for now (backward compat design) ocornut 2025-02-03 19:36:11 +0100
  • 651487ceff WIP - Allow PushFont/NewFrame/PopFont idioms to function. ocornut 2025-02-03 19:15:26 +0100
  • 4899723e5d WIP - Reordered ImFont fields. ocornut 2025-02-07 19:47:41 +0100
  • c79080d335 WIP - Baked system, v12: support GlyphOffset / GlyphMinAdvanceX / GlyphMaxAdvanceX by scaling from ref value. ocornut 2025-02-03 17:46:59 +0100
  • f357320a92 WIP - Baked system, v11. ocornut 2025-02-03 17:16:34 +0100
  • 2cc5fb9414 WIP - Comments around ImTextureUserID/ImTextureID types. ocornut 2025-01-30 17:49:52 +0100
  • db38620639 WIP - Debug dump to disk, debug log ocornut 2025-01-28 14:36:06 +0100
  • e395c43908 WIP - Texture resizing favor growing height, halve pack nodes. ocornut 2025-01-28 14:31:13 +0100
  • b18641cab0 WIP - Added PushFontSize(), PopFontSize() api. Added font_size param to PushFont() as well. ocornut 2025-01-27 20:24:05 +0100
  • 9f6ade4a95 WIP - Clarify ClearTexData() as not supported with dynamic atlases. ocornut 2025-01-30 16:32:25 +0100
  • fe7925f5c5 WIP - Baked system, with auto-bind, v10. ocornut 2025-01-23 15:46:22 +0100
  • cdea4feecd (Breaking) CalcWordWrapPositionA() -> CalcWordWrapPosition(), takes size instead of scale as this will be needed. ocornut 2025-01-24 18:10:42 +0100
  • dcb2c77f7d Internals: added ImStableVector<> helper. ocornut 2025-01-22 20:01:26 +0100
  • 52bb98352e WIP - Fixed leak due to indirectly recursing ImFontAtlasPackInit(). ocornut 2025-01-23 12:12:07 +0100
  • ccc58730e5 WIP - Stb loader: Reworked scale handling to suggest this is not required caching. ocornut 2025-01-20 20:01:21 +0100
  • 169de56daf WIP - Reduced reliance on ImFontConfig::DstFont. ocornut 2025-01-18 15:01:05 +0100
  • 6681fc49c2 WIP - Added a bit of user facing tooling. ocornut 2025-01-16 15:41:46 +0100
  • d5cb08a4dd WIP - Removed BuildClearGlyphs(), conflated with ClearOutputData() ocornut 2025-01-16 14:57:33 +0100
  • 21b8bdc27c WIP - Fixed/improved support for legacy backend. SetTexID() writes into our ImTextureData to keep the indirection, clear TexIsBuilt. ocornut 2025-01-16 11:35:55 +0100
  • b4aa5425fc WIP - (Breaking) remove ImFontAtlasCustomRect which is now the same as ImTextureRect ocornut 2025-01-15 11:53:24 +0100
  • f1816b4928 WIP - Added back support for AddCustomRectFontGlyph() ocornut 2025-01-13 20:33:36 +0100
  • 64d2dc8140 WIP - ImFontAtlasBuildInit() uses the occasion to sync HasTexUpdates from imgui context, narrowing the scope where it isn't set. ocornut 2025-01-13 20:25:16 +0100
  • f297a80467 WIP - Comments, remove ImFontAtlas facing BuildGrowTexture(), BuildCompactTexture(). Make IsBuilt() obsolete. ocornut 2025-01-13 20:03:09 +0100
  • 2ab6c7e755 WIP - Basic heuristic to repack instead of growing. Moved rects count/surface to internals. ocornut 2025-01-13 17:56:36 +0100
  • ba70d52575 WIP - Added atlas's TexMinWidth/TexMinHeight/TexMaxWidth/TexMaxHeight. ocornut 2025-01-09 23:04:00 +0100
  • 729981cb3d WIP - Ensure UpdateBox is set on texture _WantCreate state too. ocornut 2025-01-09 20:57:20 +0100
  • d54bde0d98 WIP - Turn public facing BuildRegisterGlyph() into ImFontAtlasBuildAddFontGlyph() thats sets up UV. ocornut 2025-01-09 20:48:50 +0100
  • a9fba97833 WIP - Rasterizing ellipsis character from dot as one glyph + avoid preloading if it not needed. ocornut 2025-01-08 19:07:40 +0100
  • 1ced106af2 WIP - Fixed support for multiple contexts. ocornut 2024-12-27 11:23:22 +0100
  • e6795eea39 WIP - Added ImFontAtlas::RemoveFont(), fixed various leaks. ocornut 2024-12-19 16:21:07 +0100
  • 1bebf4a673 WIP - Marked ImFontAtlas::Build() as obsolete ocornut 2024-12-20 22:33:11 +0100