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

support the MERG table #4405

Open
matthiasclasen opened this issue Sep 15, 2023 · 8 comments
Open

support the MERG table #4405

matthiasclasen opened this issue Sep 15, 2023 · 8 comments

Comments

@matthiasclasen
Copy link
Collaborator

In GTK, we recently ran into the issue that the MERG table is meant to solve:

image

It would be nice to have some solution for this, even if not many fonts have it.

Sadly, it seems that web browsers (except for webkit) just ignore this in the name of performance.

@jfkthame

@behdad
Copy link
Member

behdad commented Sep 15, 2023

Yeah it's a tough one. We can implement the table and add API to take a shaped buffer and return a bool. Matthias had this idea that if the table is missing we can fallback to a script-based solution.

@behdad
Copy link
Member

behdad commented Sep 15, 2023

Yeah it's a tough one. We can implement the table and add API to take a shaped buffer and return a bool. Matthias had this idea that if the table is missing we can fallback to a script-based solution.

The fallback would also work as the (previously requested) "can this script be letterspaced".

@matthiasclasen
Copy link
Collaborator Author

matthiasclasen commented Sep 22, 2023

The gtk issue mentions a few cases where script-based heuristics might not help: https://gitlab.gnome.org/GNOME/gtk/-/issues/6075

such as O, followed by U0336:

image

@khaledhosny
Copy link
Collaborator

IIUC, the webkit solution is more general and doesn't need any extra font-side data:
https://faultlore.com/blah/text-hates-you/#text-overlaps

@behdad
Copy link
Member

behdad commented Sep 22, 2023

Always using an off-screen for translucent text might be best.

@matthiasclasen
Copy link
Collaborator Author

Unfortunately, current GNOME design makes basically all text translucent :(

@DemiMarie
Copy link

@matthiasclasen can this be fixed in GNOME?

@KrasnayaPloshchad
Copy link

I’ve seen the similar issue affecting Fontworks’ rendering in LibreOffice.
https://bugs.documentfoundation.org/show_bug.cgi?id=104594
With this support it’s probably helpful to make the fix for LibreOffice.

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

5 participants