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

Font antialiasing fix #9

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

iiAngel
Copy link

@iiAngel iiAngel commented Aug 30, 2024

Basically native anti-aliased font rendering

image

@ZiYueCommentary ZiYueCommentary added the enhancement New feature or request label Aug 30, 2024
@iiAngel
Copy link
Author

iiAngel commented Aug 30, 2024

Its not as perfect, but wanted to put this PR to see any other way to render it a bit better and have no outlines

@ZiYueCommentary
Copy link
Owner

Thank you for contributing! 😄

The antialiasing works fine when the text size is big, but in small size conditions, it brings the same issue as the Vanilla engine.

As you can see, they are not very clear.

image

Maybe this feature requires more optimization. I will also contact with Blitz3D developers to see their opinions.

@iiAngel
Copy link
Author

iiAngel commented Aug 30, 2024

Yes investigating a bit more of the source code i found out that since setMask only takes one color value its going to be hard to get some good coloring on the texts too.

And the limitation of setPixelFast only having one pixel for transparency makes things a bit harder to display 😓

@ZiYueCommentary
Copy link
Owner

Maybe it can be an optional feature that Blitz3D developers can enable manually. Since it seems way different with the non-antialised one, I'm afraid that it could not replace the original one directly.

@ZiYueCommentary ZiYueCommentary self-requested a review August 30, 2024 05:58
@ZiYueCommentary
Copy link
Owner

It breaks the color of small-size texts too. So it requires more optimization for now.

@ZiYueCommentary
Copy link
Owner

@iiAngel Can you help us to make a underline/strikethrough feature #15 ? It is useful but sadly I'm not very good at font rendering.

Thank you! 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants