GNOME Bugzilla – Bug 721014
GtkTextView: add API to draw spaces with symbols
Last modified: 2014-08-21 17:19:57 UTC
Currently GtkSourceView has a hacky implementation for drawing different kind of spaces with symbols, like a right arrow for drawing a tabulation or a bullet for drawing a simple space. The performances would be better and the implementation would be cleaner if it is implemented in GtkTextView and Pango.
would be great to see an api proposal and patch for this
There is a rough API idea at bug #683678.
And yeah, as mentioned in that bug, having this done in pango would be good.
The last few days, I came across `pango_cairo_context_set_shape_renderer`, as used here: https://git.gnome.org/browse/gtk+/tree/demos/gtk-demo/rotated_text.c But that would be a little overkill, since as far as I understand it, it needs to create a new `PangoAttrShape` for every single char ahead of rendering?
yeah, I don't think a shape renderer is the right approach for what is essentially a glyph substitution
*** This bug has been marked as a duplicate of bug 132826 ***