Use pango_cairo_show_glyph_item() or cairo_show_text_glyphs()

Bug #420822 reported by BehdadEsfahbod
This bug affects 2 people
Affects Status Importance Assigned to Milestone

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
cairo_show_text_glyphs() -- new in cairo 1.8

jazzynico (jazzynico)
Changed in inkscape:
importance: Undecided → Wishlist
tags: added: exporting pdf
tags: added: cairo
su_v (suv-lp)
description: updated
Changed in inkscape:
milestone: none → 0.49
status: New → Triaged
Revision history for this message
jazzynico (jazzynico) wrote :

According to <> 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)
tags: added: code-design
su_v (suv-lp)
Changed in inkscape:
milestone: 0.91 → 0.92
jazzynico (jazzynico)
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