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 rendering showing uneven spacing between letters using built-in font #18726

Open
fangq opened this issue Nov 23, 2024 · 0 comments
Open
Labels
bug Something isn't working text Issues relating to text rendering/input

Comments

@fangq
Copy link

fangq commented Nov 23, 2024

Describe the bug

After #8520 being fixed, I was able to test some of the swf screencasts I made previously, and noticed that the font rendering in these text boxes show uneven letter spacing - this happens on both Linux (with NotoSans installed) and Windows (where Noto is not available) using the same Chrome browser.

for example

https://mcx.space/tutorials/mcxstudio/5_How_to_run_mcx_on_remote_GPUs.htm

the rendered text looks like this

Image

you can see the letter spacing between "de" in "demo", "how" in "show", "PU" in "GPU" and "ti" in "simulation" look wider than normal, while "we", "em" in "Remote, "Exec" in "Execution" and "feat" in "feature" look narrower than normal.

It is possible that the built-in font (Noto?) has a different font metric compared to the swf's suggested font family.

As suggested by @kjarosh in #8520, I just want to create this ticket to help track this issue.

Expected behavior

Fonts should be rendered using the matching font metrics, whether ruffle chooses to use the built-in font or the system-installed font, to render the text.

Content Location

https://mcx.space/tutorials/mcxstudio/5_How_to_run_mcx_on_remote_GPUs.htm

Affected platform

Desktop app

Operating system

windows, linux

Browser

chrome, firefox

Additional information

No response

@fangq fangq added the bug Something isn't working label Nov 23, 2024
@kjarosh kjarosh added the text Issues relating to text rendering/input label Nov 23, 2024
@fangq fangq changed the title Text rendering show uneven spacing between letters using built-in font Text rendering showing uneven spacing between letters using built-in font Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working text Issues relating to text rendering/input
Projects
None yet
Development

No branches or pull requests

2 participants