[MPEG-OTSPEC] Skia-based ot-svg renderer hook to freetype

Hin-Tak Leung htl10 at users.sourceforge.net
Sat Jul 8 23:24:22 CEST 2023


    On Saturday, 8 July 2023 at 12:36:45 GMT+8, Werner LEMBERG <wl at gnu.org> wrote:  
> > If the Freetype folks want to port to freetype2-demos, and add the
> > missing renderNode() to support all OT-SVG (I mean Google OT-SVG
> > fonts...) with a different svg rendering engine than rsvg, they can
> > fish it out of freetype-py/examples ... :-).

> Well, I don't think *we* want to port this.  Contributions, however,
> are always welcomed :-)

I wrote that initially for a bit of giggle - FreeType using a massive beast like skia merely to hand out a svg glyph and receive color bitmap back. But it isn't as crazy as it sounds.
Checked that librsvg is just under 5MB on my system, freetype just under 1MB, cairo* comes to about 2MB. The pip installed skia-python skia m87 shared library is 25MB. (But it has a lot of stuff built-into it).  So if I take out all the bundled libraries and make a skia.so which re-uses system libraries, it might come down to about 10MB, closer to librsvg + cairo.
And since m103 is necessary for OT-SVG, 5 months later than m98 for COLRv1 (Google milestones are 4 weeks apart, apparently). So trying to hook skia m103+ up underneath FreeType would probably go towards bring COLRv1 support too.
Kind of surprised that skia-python's bundled skia is so old/outdated - considering skia is google technology, and how *cough* fanatical *cough* google folks are with everything python. :-).  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.aau.at/pipermail/mpeg-otspec/attachments/20230708/7f04741a/attachment.html>

More information about the mpeg-otspec mailing list