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

Misaligned glyphs #11

Open
endervad opened this issue Jun 14, 2022 · 1 comment
Open

Misaligned glyphs #11

endervad opened this issue Jun 14, 2022 · 1 comment

Comments

@endervad
Copy link

I've noticed this behavior with both FreeType, and DirectWrite, playing around with hinting and rendering didn't help.

image

On the upper half of the screenshot is FontChanger preview. EN font is taken from the game, RU font was half-made by me, half-taken from the original font (not from the game).
On the lower half of the screenshot is the same RU font in MS Word. I've highlighted some of the more apparent cases where the space between letters differs from the FontChanger's preview.
And this is how one of the problematic glyphs looks like:

image

It seems like it happens only with glyphs that go outside of their declared width. My guess is that they are being re-aligned to 0px, or to the positive value of X (+30px in the above case). Glyphs where X >= 0 seem to be unaffected.

@Soreepeong
Copy link
Owner

Soreepeong commented Jun 14, 2022

If you need to use negative left side bearing, then you'll have to use horizontal offset to make them go positive, since the game does not support negative lsb.

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

2 participants