<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Aug 13, 2017 at 5:06 AM, Adrian Johnson <span dir="ltr"><<a href="mailto:ajohnson@redneon.com" target="_blank">ajohnson@redneon.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 10/08/17 08:13, Behdad Esfahbod wrote:<br>
> On Sun, Jul 30, 2017 at 12:20 AM, Adrian Johnson <<a href="mailto:ajohnson@redneon.com">ajohnson@redneon.com</a><br>
</span><span class="">> <mailto:<a href="mailto:ajohnson@redneon.com">ajohnson@redneon.com</a>>> wrote:<br>
><br>
>     Does it work with user fonts?<br>
><br>
><br>
> Not yet.  There's a comment in cairo-user-font.c:<br>
><br>
>         /* TODO<br>
>          * extend the glyph cache to support argb glyphs.<br>
>          * need to figure out the semantics and interaction with subpixel<br>
>          * rendering first.<br>
>          */<br>
><br>
> We now have the argb glyph cache.  We have to do some tricks to identify<br>
> color glyphs.  Still, interaction with subpixel rendering remains ambiguous.<br>
><br>
> When we do fix the above, I like to make cairo-surface.c wrap OpenType<br>
> color glyphs into a user-font before drawing.  This way we can still get<br>
> original text to be embedded in PDF whereas current implementation just<br>
> draws them as images and loses text.<br>
<br>
</span>That would be the easiest way to get nice PDF/PS output. If you could<br>
use the original CBDT images instead of 72ppi scaled images the output<br>
would be even better.<br></blockquote><div><br></div><div>Right.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Also, the current implementation has a regression. If a font contains<br>
any color glyphs, every glyph in the font will be rendered as an image<br>
instead of show_glyphs.<br>
</blockquote></div><br></div><div class="gmail_extra">Does it?  It's not supposed to be that way.<br></div><div class="gmail_extra"><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">behdad<br><a href="http://behdad.org/" target="_blank">http://behdad.org/</a></div>
</div></div>