ungoogled-software/ungoogled-chromium

Opentype SVG support (patches attached)

Open

#2,657 opened on Jan 5, 2024

View on GitHub
 (5 comments) (1 reaction) (0 assignees)Python (771 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (18,674 stars)
PR merge metrics
 (Avg merge 1d 11h) (9 merged PRs in 30d)

Description

Description

switching on opentype SVG color font support in chromium

Who's implementing?

  • I'm willing to implement this feature myself

The problem

Upstream issue:

https://bugs.chromium.org/p/chromium/issues/detail?id=306078

although it was marked as "WONT FIX" in 2021, Google engineers actually did most of the work in 2022, but left it disabled. Attached are two patches which switches opentype SVG support on. Tested against patched QT 6.7.0 Beta 1 (which includes a modified/slimmed down chromium m118).

Possible solutions

The patches and the CI to build the fedora RPMS are on https://github.com/HinTak/Qt6WE-OT-SVG/ and tested with PyQt6 in https://github.com/HinTak/minimal-web-browser s/

. In a nutshell, try visiting either https://yoksel.github.io/color-fonts-demo/ or https://pixelambacht.nl/chromacheck/ before and after applying the patches.

They are discussed in https://github.com/HinTak/chromium-mod-CI .

Alternatives

No response

Additional context

webkit-based browsers and firefox support opentype-svg for some years, and for almost a decade now.

I am aware that the patches need to be adjusted/modified beyond m121/m122 (they are more or less the same in between m112 to m120).

Filed at QT too: https://bugreports.qt.io/browse/QTBUG-120543

Contributor guide