Re: Color fonts
Behdad Esfahbod <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <CAF63+7Xe15XH-nf418nS6VbCAPQ_2nh+2m89pgzufdc-=f8wuw@mail.gmail.com> |
On Sun, Aug 13, 2017 at 5:06 AM, Adrian Johnson <[email protected]> wrote: > On 10/08/17 08:13, Behdad Esfahbod wrote: > > On Sun, Jul 30, 2017 at 12:20 AM, Adrian Johnson <[email protected] > > <mailto:[email protected]>> wrote: > > > > Does it work with user fonts? > > > > > > Not yet. There's a comment in cairo-user-font.c: > > > > /* TODO > > * extend the glyph cache to support argb glyphs. > > * need to figure out the semantics and interaction with subpixel > > * rendering first. > > */ > > > > We now have the argb glyph cache. We have to do some tricks to identify > > color glyphs. Still, interaction with subpixel rendering remains > ambiguous. > > > > When we do fix the above, I like to make cairo-surface.c wrap OpenType > > color glyphs into a user-font before drawing. This way we can still get > > original text to be embedded in PDF whereas current implementation just > > draws them as images and loses text. > > That would be the easiest way to get nice PDF/PS output. If you could > use the original CBDT images instead of 72ppi scaled images the output > would be even better. > Right. > Also, the current implementation has a regression. If a font contains > any color glyphs, every glyph in the font will be rendered as an image > instead of show_glyphs. > Does it? It's not supposed to be that way. -- behdad http://behdad.org/ -- cairo mailing list [email protected] https://lists.cairographics.org/mailman/listinfo/cairo