googlefonts / nanoemoji

A wee tool to build color fonts.
Apache License 2.0
239 stars 21 forks source link

Consider using Chrome instead resvg #389

Open rsheeter opened 2 years ago

rsheeter commented 2 years ago

We'd need Chrome in CI, which appears possible, and then we'd have a pretty consistent story: to work with bitmaps you need Chrome. Absurdly heavy but ... also fairly simple for user.

anthrotype commented 2 years ago

For producing the bitmap table from a COLRv1 font in maximum_color script (https://github.com/googlefonts/nanoemoji/pull/400), I can see how using Chrome (or even something like the skia_colr executable that we used to use in our diff tests before switching to full Chrome) could be beneficial in that it'd allow to support rasterizing stuff that can't travel through SVG format like the sweep gradients (as used in underware's Plakato) or fancier use of PaintComposite..