Re: test font with both SVG and COLR table

2022-02-04 Thread Werner LEMBERG
> Using `ttx`, I was able to modify the font a bit to produce another > font that contains 'COLR' v0 and 'SVG' tables – and indeed, it > doesn't work as expected – (a) SVG should have higher precendence, > which is not the case, and (b) the `COLR` glyph is shown even if > FT_LOAD_COLOR is not

Re: test font with both SVG and COLR table

2022-01-26 Thread Werner LEMBERG
> off-topic, but sbix only works reliably on mac --> > https://github.com/harfbuzz/harfbuzz/issues/2679#issuecomment-1021419864 Ah, I completely forgot this one, thanks for the reminder. Werner

Re: test font with both SVG and COLR table

2022-01-26 Thread Werner LEMBERG
> please find attached a test COLRv1 + SVG font, containing only one > color glyph ✍ "WRITING HAND" (U+270D) emoji. Thanks a lot, this is exactly what I need for testing. The font works fine with FreeType, it seems (it only shows the SVG output since it can't render COLR v1 natively). Using

Re: test font with both SVG and COLR table

2022-01-26 Thread Cosimo Lupo
off-topic, but sbix only works reliably on mac --> https://github.com/harfbuzz/harfbuzz/issues/2679#issuecomment-1021419864 On Wed, Jan 26, 2022 at 5:43 PM Adam Twardoch (Lists) < list.a...@twardoch.com> wrote: > Apologies for a bit off-topic: > > BTW, given that some folks at Apple don’t seem

Re: test font with both SVG and COLR table

2022-01-26 Thread Roderick Sheeter
Strikes me we should consider adding a PaintBitmap to COLRv1. That would make it possible for us to convert many (though not all) fonts between COLRv1 <=> ot-svg. Looking at my own little slice of the world I could imagine onboarding a COLRv1 font to Google Fonts and if a Safari user happens to

Re: test font with both SVG and COLR table

2022-01-26 Thread Adam Twardoch (Lists)
Apologies for a bit off-topic: BTW, given that some folks at Apple don’t seem to be great fans of COLRv1, while Google isn’t a great fan of SVG, chances are that we’ll see the phasing out of "sbix" and "CBDT", but both COLRv1 and SVG will stick around — also because SVG allows bitmaps. Check out:

Re: test font with both SVG and COLR table

2022-01-26 Thread Cosimo Lupo via FreeType development
Hi Werner and all, please find attached a test COLRv1 + SVG font, containing only one color glyph ✍ "WRITING HAND" (U+270D) emoji. The font was built using nanoemoji using the following command, from the root of the noto-emoji

Re: test font with both SVG and COLR table

2022-01-25 Thread Werner LEMBERG
> Do you still need such a test font with SVG and COLR in it? I guess, > we can make one if it's needed. This would be still very helpful, yes. I think it would be helpful for for fuzzing, too. A single glyph (besides '.notdef) would be enough. >> The question doesn't arise for serious

Re: test font with both SVG and COLR table

2022-01-25 Thread Dominik Röttsches
Hi Werner, On Tue, Jan 25, 2022 at 9:48 AM Werner LEMBERG wrote: > > > While working on the new SVG support in FreeType three questions > > came to my mind. > > After some working on the documentation I believe I can now answer two > questions by myself :-) The thing is that for serious

test font with both SVG and COLR table

2022-01-25 Thread Werner LEMBERG
Hello Dominik and Ben, do you have a (small) test font that contains both a valid SVG and a COLR table for the same glyph(s)? Otherwise, could you assemble such a thing? Ideally, the font should come in two flavours (TTF and OTF) to cover all combinations. While working on the new SVG

Re: test font with both SVG and COLR table

2022-01-24 Thread Werner LEMBERG
> While working on the new SVG support in FreeType three questions > came to my mind. After some working on the documentation I believe I can now answer two questions by myself :-) The thing is that for serious handling of `COLR` you must not use the `FT_LOAD_COLOR` flag at all (which only