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

Cairo: Update to 1.18.4 #23337

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Cairo: Update to 1.18.4 #23337

wants to merge 2 commits into from

Conversation

lb90
Copy link
Collaborator

@lb90 lb90 commented Feb 10, 2025

And enable use of Cairo DWrite fonts in Pango

Fixes #22809

@cal0pteryx
Copy link

I see https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/602 has just been merged 🎉

@lb90 lb90 force-pushed the cairo-add-patch branch from f83d2f9 to 89fce21 Compare March 9, 2025 11:05
lb90 added 2 commits March 9, 2025 12:10
The color fringing issue with Cairo DWrite fonts has been
fixed in the latest release, Cairo 1.18.4.

Fixes msys2#22809

References:
  - https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/602
@lb90 lb90 force-pushed the cairo-add-patch branch from 89fce21 to 0f91be3 Compare March 9, 2025 11:10
@lb90 lb90 changed the title Draft: Cairo: Add patch for DWrite fonts Cairo: Add patch for DWrite fonts Mar 9, 2025
@lb90 lb90 changed the title Cairo: Add patch for DWrite fonts Cairo: Update to 1.18.4 Mar 9, 2025
@lb90
Copy link
Collaborator Author

lb90 commented Mar 9, 2025

Ok, should be ready to go now!

@lazka
Copy link
Member

lazka commented Mar 10, 2025

Thanks, this looks kinda acceptable now, from a font rendering POV :)

Is it expected that there is less/worse font hinting with dwrite? Is there a way to switch it back at runtime?

I see it also in Windows itself, so it wouldn't surprise me, for example in the file explorer everything has font hinting except the "home" view which is blurry, or the Windows settings app is also blurry while the old Control Panel has nice hinting.

@lazka
Copy link
Member

lazka commented Mar 10, 2025

hm, it's worse with gtk4. I let you decide :)

old:
gtk4_old

new:
gtk4_new

edit: here is the full set of comparison images: https://gist.github.com/lazka/c426a63282d3c575fda6ee28c694ea03

@cal0pteryx
Copy link

Even if font rendering is slightly degraded (which may always be improved in later Cairo versions), this new release fixes rendering Emojis, which wouldn't render at all before.

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

Successfully merging this pull request may close these issues.

gtk4: Emoji rendering broken
3 participants