[HarfBuzz] Font substitution

Behdad Esfahbod behdad.esfahbod at gmail.com
Thu Nov 12 00:59:49 PST 2015


On 15-11-12 12:19 AM, Simon Cozens wrote:
> Can anyone point me at some sample code which allows performs font
> substitution? I'm guessing the way to do this is to detect notdefs,
> break the buffer around them and then try the notdef'd glyphs in another
> font.

That's the way I recommend, yes.  The tricky part is about deciding which part
to reshape.  But I let you take a look at the problem first...


> Has anyone got some fairly accessible code which does this already?

Here's Chrome's attempt:
https://codereview.chromium.org/1397423004/

Dominik (CC'ed) can point you to the latest code.  Khaled knows about
LibreOffice implementation.

b


More information about the HarfBuzz mailing list