Fonts: use TexGlyphPadding. Fixed packing issues. Removed old code.

This commit is contained in:
ocornut
2025-06-11 15:41:21 +02:00
committed by ocornut
parent 0f553c57bd
commit b670f799d5
2 changed files with 15 additions and 39 deletions
+1 -2
View File
@@ -3654,10 +3654,9 @@ struct ImFontAtlasBuilder
{
stbrp_context_opaque PackContext; // Actually 'stbrp_context' but we don't want to define this in the header file.
ImVector<stbrp_node> PackNodes;
int PackPadding; // Generally 1 to avoid bilinear filtering issues.
ImVector<ImFontAtlasRect> Rects;
ImVector<unsigned char> TempBuffer; // Misc scratch buffer
ImVec2i MaxRectSize; // Largest rectangle to pack (defacto used as a "minimum texture size")
ImVec2i MaxRectSize; // Largest rectangle to pack (de-facto used as a "minimum texture size")
ImVec2i MaxRectBounds; // Bottom-right most used pixels
bool LockDisableResize; // Disable resizing texture
bool PreloadedAllGlyphsRanges; // Set when missing ImGuiBackendFlags_RendererHasTextures features forces atlas to preload everything.