Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a way to specify amount of padding for each glyph #80

Closed
wants to merge 1 commit into from

Conversation

maatko
Copy link

@maatko maatko commented Jul 7, 2023

Allows you to specify the amount of padding used in the atlas packer when packing the glyphs,
this can be useful when drawing the glyph in the fragment shader for all sorts of effects

@maatko maatko mentioned this pull request Jul 7, 2023
@znakeeye
Copy link

How come this PR was not merged? Having padding between the glyphs allows you to seamlessly render e.g. shadow without reading from the adjacent characters. I.e. Without padding, this shadron script (see line 36) will produce artifacts. (At least when put that code in a regular shader.)

@Chlumsky
Copy link
Owner

Chlumsky commented Jan 1, 2024

I am not opposed to a padding option but it has to be implemented correctly, which this merge request does not do. It is not as simple as it might initially seem. I am planning to do a larger update to this library in the first quarter of this year, so I will try to add a padding option as well.

@Chlumsky Chlumsky closed this Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants