Closed Bug 1175287 (opentype-svg-gzip) Opened 9 years ago Closed 6 years ago

Support gzip-compressed SVGs in OpenType+SVG fonts

Categories

(Core :: Graphics: Text, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1359240

People

(Reporter: mozilla, Unassigned)

Details

(Whiteboard: gfx-noted)

Attachments

(1 file)

Based on my proposal, gzip-compression was added to SVG+OpenType spec.  Quoting from:

  http://www.microsoft.com/typography/otspec/svg.htm

"""
While SVG 1.1 requires in addition to plain text encoding that conforming SVG implementations must correctly support gzip-encoded [RFC1952] and deflate-encoded [RFC1951] data streams, this specification requires that conforming SVG implementations must correctly support plain-text and gzip-encoded [RFC1952] data streams only. In both cases, svgDocLength encodes the length of the encoded data, not the decoded document.
"""

I implemented this in FontTools a while back:

  https://github.com/behdad/fonttools/commit/612c70dadadbcc85338868ee8a204fadb760a744

And have attached a test font, based on (unreleased) NotoColorEmojiSVG with compression.

Please implement. Thanks. :)
Alias: opentype-svg-gzip
Component: Untriaged → Graphics: Text
Product: Firefox → Core
Whiteboard: gfx-noted
Jonathan, any chance we can see this happen soon?
Adobe Type chose not to compress the SVG documents in Trajan Color SVG (https://typekit.com/fonts/trajan-color) because Firefox didn't support it. Edge supports compression, and Adobe apps (InDesign, Illustrator, Photoshop) all support it. Please do add gzip support so that fonts can be shipped smaller. Thanks!
Oops, we must've overlooked this bug, as it got re-filed as bug 1359240 where there's a patch awaiting review. Dup'ing forward to that one.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: