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

Text align ignores width of glyph #282

Open
SinanAkkoyun opened this issue Jan 8, 2025 · 2 comments
Open

Text align ignores width of glyph #282

SinanAkkoyun opened this issue Jan 8, 2025 · 2 comments

Comments

@SinanAkkoyun
Copy link

SinanAkkoyun commented Jan 8, 2025

textAlign: right
image

Somehow this monospace font is not being positioned correctly on textAlign borders.
I assure the width and bearing of every glyph is exactly the same width.
Even when prepending a whitespace it does weird stuff:
image

I'd be glad about any help, even if it's just a quick incentive on where to look in the source code.

@caramboleyo-no2fa
Copy link

Maybe its something about font kerning:
https://felixmariotto.github.io/three-mesh-ui/#font_kerning

@SinanAkkoyun
Copy link
Author

SinanAkkoyun commented Jan 14, 2025

That's a good guess, but I already have it at kerning: 'none' and deleted all kernings in the TTF file itself (fontforge)

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