Use pango_cairo_show_glyph_item() or cairo_show_text_glyphs()

Bug #420822 reported by BehdadEsfahbod on 2009-08-28
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Wishlist
jazzynico

Bug Description

Currently Inkscape uses cairo_show_glyphs() to render text to PS/PDF. This is suboptimal. By using any of the two APIs listed in Summary [1] will result in better text extraction from the resulting PS/PDF.

Those two APIs are newer than cairo_show_glyphs() though. And the code needs some change to push the text down to the drawing layer as well as the glyphs.

[1] references:
pango_cairo_show_glyph_item() -- new in pango 1.22
<http://library.gnome.org/devel/pango/stable/pango-Cairo-Rendering.html#pango-cairo-show-glyph-item>
cairo_show_text_glyphs() -- new in cairo 1.8
<http://cairographics.org/manual/cairo-text.html#cairo-show-text-glyphs>

jazzynico (jazzynico) on 2009-09-07
Changed in inkscape:
importance: Undecided → Wishlist
tags: added: exporting pdf
tags: added: cairo
su_v (suv-lp) on 2011-03-06
description: updated
Changed in inkscape:
milestone: none → 0.49
status: New → Triaged
jazzynico (jazzynico) wrote :

According to <http://wiki.inkscape.org/wiki/index.php/Tracking_Dependencies> all the targeted distros have pango>1.28 and cairo>1.10. That would somewhat ease the migration.

The only occurrence of cairo_show_glyphs() is in src/extension/internal/cairo-render-context.cpp:1517 (trunk revision 12886).

jazzynico (jazzynico) on 2014-02-03
tags: added: code-design
su_v (suv-lp) on 2014-11-06
Changed in inkscape:
milestone: 0.91 → 0.92
jazzynico (jazzynico) on 2016-08-29
Changed in inkscape:
milestone: 0.92 → 0.93
assignee: nobody → jazzynico (jazzynico)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers