korean packing rect size multiply 2#5788
Closed
seokwoongchoi wants to merge 2 commits intoocornut:masterfrom
Closed
korean packing rect size multiply 2#5788seokwoongchoi wants to merge 2 commits intoocornut:masterfrom
seokwoongchoi wants to merge 2 commits intoocornut:masterfrom
Conversation
Owner
|
Hello, thanks for the PR. |
Author
|
i've tried find better solution. but couldn't find it.
|
ocornut
added a commit
that referenced
this pull request
Jan 4, 2023
… prevent large amount of glyphs from being packed correctly. (#5788, #5829) This seemingly innocuous change sursingly had very large side-effects of completly breaking packing for the test font mentioned in above issue. Not even sure why tbh. New code matches what stb_truetype's stbtt_PackBegin() does.
Owner
|
Hello, --stbrp_init_target(&pack_context, atlas->TexWidth, TEX_HEIGHT_MAX, pack_nodes.Data, pack_nodes.Size);
++stbrp_init_target(&pack_context, atlas->TexWidth - atlas->TexGlyphPadding, TEX_HEIGHT_MAX - atlas->TexGlyphPadding, pack_nodes.Data, pack_nodes.Size); |
ocornut
added a commit
that referenced
this pull request
Jan 4, 2023
… prevent large amount of glyphs from being packed correctly. (#5788, #5829) This seemingly innocuous change sursingly had very large side-effects of completly breaking packing for the test font mentioned in above issue. Not even sure why tbh. New code matches what stb_truetype's stbtt_PackBegin() does.
maztheman
pushed a commit
to maztheman/imgui
that referenced
this pull request
Mar 10, 2025
… prevent large amount of glyphs from being packed correctly. (ocornut#5788, ocornut#5829) This seemingly innocuous change sursingly had very large side-effects of completly breaking packing for the test font mentioned in above issue. Not even sure why tbh. New code matches what stb_truetype's stbtt_PackBegin() does.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some koreans seems to be a little bigger.
So if we use freetype, it is necessary to increase the width of the correct when packing.
Changes:
NanumSquareB_ttf.zip