[HarfBuzz] harfbuzz-ng: Branch 'master' - 2 commits

Behdad Esfahbod behdad at behdad.org
Wed May 16 20:28:41 PDT 2012


On 05/16/2012 07:58 AM, Khaled Hosny wrote:
> On Tue, May 15, 2012 at 08:54:24PM -0700, Behdad Esfahbod wrote:
>>     [util] Add hb-ot-shape-closure tool
>>     
>>     Computes all the glyphs that may be generated given a font and
>>     set of Unicode characters.
> 
> Cool!
> 
> I was thinking in a similar, but slightly different tool that would be
> used to help subsetting fonts for small pieces of text, instead of
> returning all possible glyphs, it returns to set of glyphs: final glyphs
> that will be shown and any intermediate glyphs that were processed
> during OT layout, so I keep the final glyphs and put some dummy outlines
> in the intermediate ones and remove everything else. Not sure how easy
> is that, but just in case.

So, from what I understand, you only care about:

  * Final glyphs, since they are to be displayed,

  * Initial, cmap glyphs, since they have to be in the font for fontconfig etc
to consider it supported.

You don't really care about intermediate glyphs if they are going to be
replaced.  Right?  I'm ignoring GPOS contour attachment points, etc here.

But I see where you are coming from.  I can add this one too.  It's a bit of a
different design from what I have right now, but I can probably add it by
adding a generic /observer/ pattern to the GSUB/GPOS machinery, which kinda
would be useful otherwise too...

behdad

> Regards,
>  Khaled
> 



More information about the HarfBuzz mailing list