[Cairo] Color transforms
Owen Taylor
otaylor at redhat.com
Sat Jul 19 06:57:11 PDT 2003
On Fri, 2003-07-18 at 19:47, Keith Packard wrote:
> Around 18 o'clock on Jul 18, Owen Taylor wrote:
>
> > So, there is no point in getting too fancy with the part that
> > isn't "draw these glyphs at these positions".
>
> That's the plan -- some lame UTF-8 based API for applications that aren't
> wise enough to find a real text layout system, and then support for
> setting specific glyphs at specific locations.
>
> The UTF-8 API will probably do font merging right down inside cairo so
> that applications will always get that. I'm wondering how I can use this
> same code to accelerate this operation in Pango -- my plan is to use a
> single level hash to map unicode -> glyph/font so that I don't have to
> walk the sorted list of fonts for glyphs I've already found.
This operation hasn't shown up to be much of a bottleneck for Pango;
it's the mapping from pattern => list of fonts that we needed to
cache aggressively.
I'm pretty sure we'll be going to non-local glyph selection for Pango
in the near future to get punctuation/whitespace/etc from the right
font, so a character => font cache isn't going to be useful
for Pango.
Regards,
Owen
More information about the cairo
mailing list