[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] WOFF2 Support Update
From: |
Werner LEMBERG |
Subject: |
Re: [ft-devel] WOFF2 Support Update |
Date: |
Fri, 02 Aug 2019 07:38:33 +0200 (CEST) |
> With commit af7d296 (in branch `GSoC-2019-nikhil'), we can now quite
> efficiently convert a WOFF2 to an SFNT font, which can then be
> rendered by FreeType.
Great!
> (1) If the WOFF2 is a TTC, only the requested face is loaded. So,
> instead of a TTC, we generate a single-face sfnt with one offset
> table, table record and so on... [...]
>
> The issue with (1) is that if I call `FT_New_Face' for a woff2 file
> with a negative index (which is supposed to provide information on
> the specific face), the code in `sfobjs.c' will only see a single
> face, which means `face->num_faces' will be set to 1. I'm not
> really sure how to handle this. Any suggestions?
Hmm. The functionality of negative `face_index' values as documented
in the description of `FT_Open_Face' must work for WOFF2, too. So, to
get the number of faces in a TTC, you have to read the TTC header.
However, to get the number of named instances for a variation font
with index N, loading this font should be sufficient. You still have
to get the number of faces in a TTC just to find out whether the
requested subfont can be loaded at all.
Werner
- [ft-devel] WOFF2 Support Update, Nikhil Ramakrishnan, 2019/08/01
- Re: [ft-devel] WOFF2 Support Update,
Werner LEMBERG <=
- Re: [ft-devel] WOFF2 Support Update, Nikhil Ramakrishnan, 2019/08/03
- Re: [ft-devel] WOFF2 Support Update, Werner LEMBERG, 2019/08/04
- Re: [ft-devel] WOFF2 Support Update, Nikhil Ramakrishnan, 2019/08/04
- Re: [ft-devel] WOFF2 Support Update, Werner LEMBERG, 2019/08/04
- Re: [ft-devel] WOFF2 Support Update, Nikhil Ramakrishnan, 2019/08/04
- Re: [ft-devel] WOFF2 Support Update, Werner LEMBERG, 2019/08/05
- Re: [ft-devel] WOFF2 Support Update, Alexei Podtelezhnikov, 2019/08/05
- Re: [ft-devel] WOFF2 Support Update, Nikhil Ramakrishnan, 2019/08/13
- Re: [ft-devel] WOFF2 Support Update, Nikhil Ramakrishnan, 2019/08/04