[HarfBuzz] Zero-width joiner has width

Behdad Esfahbod behdad at behdad.org
Sun Aug 9 08:02:03 PDT 2015


How do you measure?  When I get time to build Sile, I'm first going to
remove FreeType dep...
On Aug 9, 2015 4:58 PM, "Simon Cozens" <simon at simon-cozens.org> wrote:

> On 09/08/2015 09:15, Simon Cozens wrote:
> > OK, I'm now trying to set the scaling to the font upem, but I'm not
> > getting that working either.
>
> After a bit of fiddling I have now got it working, using:
>     hb_face_t* hbFace = hb_ft_face_create_cached(face);
>     hb_ft_font = hb_font_create (hbFace);
>     unsigned int upem = hb_face_get_upem(hbFace);
>     hb_font_set_scale(hb_ft_font, upem, upem);
>     hb_ft_font_set_funcs(hb_ft_font);
>
> It's about 50% slower than using Freetype functions directly, which is a
> big shame(!), but computers always get faster and I'm sure this way
> gives me more flexibility later...
>
> See latest version:
>
> https://github.com/simoncozens/sile/blob/master/src/justenoughharfbuzz.c#L263
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/harfbuzz/attachments/20150809/729fa218/attachment.html>


More information about the HarfBuzz mailing list