After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 721014 - GtkTextView: add API to draw spaces with symbols
GtkTextView: add API to draw spaces with symbols
Status: RESOLVED DUPLICATE of bug 132826
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
unspecified
Other All
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-12-24 13:23 UTC by Sébastien Wilmet
Modified: 2014-08-21 17:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sébastien Wilmet 2013-12-24 13:23:24 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.
Comment 1 Matthias Clasen 2014-01-05 17:01:00 UTC
would be great to see an api proposal and patch for this
Comment 2 Sébastien Wilmet 2014-03-06 21:22:51 UTC
There is a rough API idea at bug #683678.
Comment 3 Matthias Clasen 2014-03-07 04:25:41 UTC
And yeah, as mentioned in that bug, having this done in pango would be good.
Comment 4 Arpad Borsos 2014-03-07 08:15:51 UTC
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?
Comment 5 Matthias Clasen 2014-03-13 04:37:02 UTC
yeah, I don't think a shape renderer is the right approach for what is essentially a glyph substitution
Comment 6 Sébastien Wilmet 2014-08-21 17:18:05 UTC

*** This bug has been marked as a duplicate of bug 132826 ***