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

Wrong font outline for non-ASCII characters #55

Open
freedan42x opened this issue Aug 14, 2022 · 0 comments
Open

Wrong font outline for non-ASCII characters #55

freedan42x opened this issue Aug 14, 2022 · 0 comments

Comments

@freedan42x
Copy link

freedan42x commented Aug 14, 2022

As you can see in the screenshot, the text itself is rendered correctly, but its outline is not: for ASCII characters it is facing bottom-right, but for UTF8 ones it's top-right.

image

Is there some way to offset outline for UTF8 characters? The rendered string contains both ASCII and UTF8 characters, and the one naive solution I can see is splitting them into 2 separate strings, check if it is UTF8, and if so, render with y offset, but that just seems inefficient. I render outline with FC_SetSpacing(font_outline, -2). I tried checking mentions of "outline" in source code, but I didn't succeed in finding where the problem at. I also tried different fonts, and it seems that the problem is not font-related. I also tried to render the text via SDL_ttf, but it works there no problem. And I really don't want to switch back. Can someone help, please?

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

No branches or pull requests

1 participant