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

Inaccurate position of outline text with SFML back-end #75

Open
cschreib opened this issue Oct 9, 2021 · 1 comment
Open

Inaccurate position of outline text with SFML back-end #75

cschreib opened this issue Oct 9, 2021 · 1 comment
Labels
bug sfml Related to SFML implementation upstream
Milestone

Comments

@cschreib
Copy link
Owner

cschreib commented Oct 9, 2021

In the current latest version of SFML (2.5.1) there is a bug in outline glyph rendering which makes the outline sometimes inaccurate. This is normally fine for regular fonts, but significant for italic of bold. In some regular fonts, certain characters like : or + also have their outline incorrectly positioned. I have opened a PR to fix this in SFML SFML/SFML#1827. When this PR is merged, or if using a custom build of SFML, the outline can be fixed to the right position by defining SFML_HAS_OUTLINE_GLYPH_FIX when building lxgui.

@cschreib cschreib added bug sfml Related to SFML implementation labels Oct 9, 2021
@cschreib cschreib added this to the v2.x milestone Oct 9, 2021
@cschreib cschreib changed the title Improve accurac of SFML outline text Inaccurate position of outline text with SFML back-end Oct 9, 2021
@cschreib
Copy link
Owner Author

This has been merged upstream and should be available in SFML 2.6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug sfml Related to SFML implementation upstream
Projects
None yet
Development

No branches or pull requests

1 participant