Add hook for a custom renderer to adjust inked (and perhaps logical) extents
Submitted by Peter Clifton
Link to original bug (#565478)
Description
Please describe the problem: When using a custom renderer with pango, we may supplement the glyphs drawn with add additional graphics, such as an overbar, or other decoration.
This means that the inked extents returned by:
pango_layout_get_extents() or pango_layout_get_pixel_extents() are no longer corrrect.
I'm not entirely sure if the render should be able to modify the logical extents, however that does seem a possible extension - if our addournments were to cause the metrics such as line-line spacing to change.
Currently it doesn't seem possible to achieve this adjustment with simple user-land subclasses of existing pango functionality.
Steps to reproduce:
Actual results:
Expected results:
Does this happen every time?
Other information:
Version: 1.22.x