NEW326326
Remove SVG fonts
https://bugs.webkit.org/show_bug.cgi?id=326326
Summary Remove SVG fonts
Karl Dubost
Reported 2026-10-05 01:46:17 PDT
SVG fonts (the font, glyph, missing-glyph, hkern, vkern and font-face family of elements) were removed from SVG 2. Firefox and Chrome do not support them. Since 2014, only WebKit supports SVG fonts. WebKit still does, by converting them to OpenType. https://w3c.github.io/svgwg/svg2-draft/changes.html#fonts > Removed this chapter and the SVG Fonts feature it contained, including the 'font', 'glyph', 'missing-glyph', 'hkern', 'vkern', 'font-face', 'font-face-src', 'font-face-uri', 'font-face-format' and 'font-face-name' elements and their corresponding IDL interfaces. This is about SVG 1.1 fonts, not OpenType-SVG colour fonts, which are unaffected. Testcase: ```html <svg width="0" height="0"> <font id="f" horiz-adv-x="1000"> <font-face font-family="SVGTest" units-per-em="1000" ascent="800" descent="200"/> <glyph unicode="A" d="M0 0h1000v800H0z"/> </font> </svg> <p style="font-family: SVGTest">A</p> ``` and the same font loaded from a file: ```css @font-face { font-family: SVGTestExternal; src: url(font.svg#f) format("svg"); } ``` Expected, as in Firefox and Chrome: the letter A in the fallback font. Actual: a filled rectangle, the SVG glyph. If removing them directly is too quick, a first step could be a console deprecation warning when an SVG font is used, as it has been done for XSLT in bug 303881.
Attachments
Karl Dubost
Comment 1 2026-10-05 01:51:05 PDT
* Gecko never implemented SVG fonts. https://bugzilla.mozilla.org/show_bug.cgi?id=119490 closed WONTFIX on 2013-05-07. * Blink disabled them on 2014-07-10 except on GDI Windows (XP, Vista), and removed them on all platforms on 2014-10-24. https://crbug.com/242735 https://groups.google.com/a/chromium.org/d/msg/blink-dev/pYbbUcYvlYY/LQvFvM8KZZEJ WebKit has been the only engine supporting SVG fonts since 2014. It will require to modify or remove svg/fonts/zero-font-size-adjust.html which is using an SVG font.
Radar WebKit Bug Importer
Comment 2 2026-10-12 01:47:15 PDT
Note You need to log in before you can comment on or make changes to this bug.