[MPEG-OTSPEC] Scheduling Zoom meeting to discuss new proposals and AHG recommendations

Dominik Röttsches drott at google.com
Tue Jul 4 11:17:55 CEST 2023


COLRv1 rendering in Python exists in
https://github.com/BlackFoundryCom/black-renderer - that's using fonttools
for parsing, to my knowledge, not using FreeType, but you can probably take
inspiration from the drawing backends of blackrenderer. Or then,
potentially through pycairo if it has a recent cairo backing it. Or then
https://pypi.org/project/skia-python/ - I haven't tested that and I don't
know if that's built with FreeType in it, but if it is, it should support
COLRv1 as well.

Dominik


On Tue, Jul 4, 2023 at 12:06 AM Hin-Tak Leung <htl10 at users.sourceforge.net>
wrote:

>
> Oh, apparently some sort of COLRv1 support had gotten into cairo 1.17.x a
> few months ago. Wonder how much of that is available to glueing up via
> pycairo/freetype-py.
>
> On Tuesday, 4 July 2023 at 04:17:25 GMT+8, Hin-Tak Leung <
> htl10 at users.sourceforge.net> wrote:
>
>
> On Tuesday, 4 July 2023 at 03:15:47 GMT+8, Werner LEMBERG <wl at gnu.org>
> wrote:
>
> > >> > Freetype currently has a preference of SVG over COLRv0/COLRv1 if
> > >> both are present, [...]
> > >> With the latest release (2.13.1) there is a new load flag
> > >> `FT_LOAD_NO_SVG` to make FreeType ignore glyphs in > the SVG table.
> > >
> > > Yes, I added that to freetype-py as part of the OT-SVG support (just
> > > sync'ing some parts), and found that COLRv1 does not render with
> > > freetype git HEAD correctly (yet),
>
> > It probably never will – at least not built-in.  I sincerely hope that
> > someone is writing a library (or some glue for a 2D  graphics library
> > like Skia) that I can plug into FreeType, similar to an SVG rendering
> > library.  It wouldn't even be necessary to support every small detail
> > (for example, multiple color palettes); a basic rendering would
> > suffice...
>
> Well, a scripting-language based prototype plug-in isn't too bad for a
> start. The fontval callback, the FT_Outline_Decompose and the SVG renderer
> hook now all exist as pythonic form. (The fontval callback as C#, perl and
> golang form too...)
> _______________________________________________
> mpeg-otspec mailing list
> mpeg-otspec at lists.aau.at
> https://lists.aau.at/mailman/listinfo/mpeg-otspec
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.aau.at/mailman/private/mpeg-otspec/attachments/20230704/6f3f910d/attachment-0001.html>


More information about the mpeg-otspec mailing list