[Cairo] Text API (was: Color transforms)
tor.andersson at dsek.lth.se
Mon Jul 21 05:07:17 PDT 2003
On 2003-07-21 CE Thorsten.Behrens at Sun.COM wrote,
> On Fri, Owen wrote:
> > Just remember that any Cairo text API's for applications will be
> > more or less "toy"; for heavy-duty usage, you need a Pango equivalent.
> > So, there is no point in getting too fancy with the part that
> > isn't "draw these glyphs at these positions".
> There's at least one subtlety: for string search working in PDF export,
> mere glyphs are not sufficient. You need the original string for that. So,
> if Cairo really wants to provide useful PDF exports (other possible
> formats, like e.g. SVG, might pose similar problems), a glyph export might
> not be enough.
That's what the ToUnicode entry in the PDF is for, mapping glyphs to
unicode character codes. Too bad it is still insufficient for more
advanced scripts that do glyph reordering, like Devanagiri.
More information about the cairo