You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Atlas width is now properly based on total surface rather than glyph count (unless overridden with TexDesiredWidth).
- Fixed atlas builder so missing glyphs won't influence the atlas texture width. (#2233)
- Fixed atlas builder so duplicate glyphs (when merging fonts) won't be included in the rasterized atlas.
Copy file name to clipboardExpand all lines: docs/TODO.txt
+1-4
Original file line number
Diff line number
Diff line change
@@ -235,9 +235,7 @@ It's mostly a bunch of personal notes, probably incomplete. Feel free to query i
235
235
- pie menus patterns (#434)
236
236
- markup: simple markup language for color change? (#902)
237
237
238
-
!- font: need handling of missing glyphs by not packing/rasterizing glyph 0 of a given font.
239
-
- font: MergeMode: flags to select overwriting or not.
240
-
- font: MergeMode: duplicate glyphs are stored in the atlas texture which is suboptimal.
238
+
- font: MergeMode: flags to select overwriting or not (this is now very easy with refactored ImFontAtlasBuildWithStbTruetype)
241
239
- font: free the Alpha buffer if user only requested RGBA.
242
240
!- font: better CalcTextSizeA() API, at least for simple use cases. current one is horrible (perhaps have simple vs extended versions).
243
241
- font: a CalcTextHeight() helper could run faster than CalcTextSize().y
@@ -252,7 +250,6 @@ It's mostly a bunch of personal notes, probably incomplete. Feel free to query i
252
250
- font/draw: vertical and/or rotated text renderer (#705) - vertical is easier clipping wise
253
251
- font/draw: need to be able to specify wrap start position.
254
252
- font/draw: better reserve policy for large horizontal block of text (shouldn't reserve for all clipped lines)
255
-
- font: imgui_freetype.h alternative renderer (#618)
256
253
- font: optimization: for monospace font (like the default one) we can trim IndexXAdvance as long as trailing value is == FallbackXAdvance (need to make sure TAB is still correct).
257
254
- font: add support for kerning, probably optional. A) perhaps default to (32..128)^2 matrix ~ 9K entries = 36KB, then hash for non-ascii?. B) or sparse lookup into per-char list?
258
255
- font: add a simpler CalcTextSizeA() api? current one ok but not welcome if user needs to call it directly (without going through ImGui::CalcTextSize)
Copy file name to clipboardExpand all lines: imgui.h
+1-1
Original file line number
Diff line number
Diff line change
@@ -2047,7 +2047,7 @@ struct ImFontAtlas
2047
2047
ImFontAtlasFlags Flags; // Build flags (see ImFontAtlasFlags_)
2048
2048
ImTextureID TexID; // User data to refer to the texture once it has been uploaded to user's graphic systems. It is passed back to you during rendering via the ImDrawCmd structure.
2049
2049
int TexDesiredWidth; // Texture width desired by user before Build(). Must be a power-of-two. If have many glyphs your graphics API have texture size restrictions you may want to increase texture width to decrease height.
2050
-
int TexGlyphPadding; // Padding between glyphs within texture in pixels. Defaults to 1.
2050
+
int TexGlyphPadding; // Padding between glyphs within texture in pixels. Defaults to 1. If your rendering method doesn't rely on bilinear filtering you may set this to 0.
2051
2051
2052
2052
// [Internal]
2053
2053
// NB: Access texture data via GetTexData*() calls! Which will setup a default font for you.
0 commit comments