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 505786 - add text tag property for font fallback
add text tag property for font fallback
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 579900
 
 
Reported: 2007-12-26 19:57 UTC by Christian Persch
Modified: 2014-12-06 00:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (5.03 KB, patch)
2007-12-26 19:57 UTC, Christian Persch
none Details | Review
[PATCH] Add text tag property for disabling font fallback. Bug #505786. (5.73 KB, patch)
2008-02-06 23:20 UTC, Christian Persch
none Details | Review

Description Christian Persch 2007-12-26 19:57:26 UTC
There's no way to set a 'no font fallback' text attribute on the text.
Comment 1 Christian Persch 2007-12-26 19:57:41 UTC
Created attachment 101640 [details] [review]
proposed patch
Comment 2 Behdad Esfahbod 2007-12-26 23:29:27 UTC
Looks good.  I wonder if there's a more generic way around wrapping each pango attribute separately (where PangoMarkup does the same too)...  For example, the vertical text stuff has no property either.
Comment 3 Matthias Clasen 2007-12-28 14:36:13 UTC
Yeah, we have a bit of an extensibility problem here, since both GtkTextAppearance and GtkTextAttributes are simple structs, and both have only a few bits of padding left. So there is no chance to add support for things like letter spacing without finding some way to extend these structs. The way these things are shuttled around is a bit confusing, there is also GtkTextAttrAppearance...
Comment 4 Christian Persch 2008-02-06 23:20:40 UTC
Created attachment 104600 [details] [review]
[PATCH] Add text tag property for disabling font fallback. Bug #505786.

 gtk/gtktextlayout.c |   12 +++++++++++-
 gtk/gtktexttag.c    |   49 ++++++++++++++++++++++++++++++++++++++++++++++---
 gtk/gtktexttag.h    |    7 +++++--
 3 files changed, 62 insertions(+), 6 deletions(-)
Comment 5 Behdad Esfahbod 2010-08-24 20:11:45 UTC
What's the gtk3 roadmap for this?

Something like:

  - Add properties to PangoLayout

  - Make certain gtk widgets have a ->layout property which is a PangoLayout that holds the defaults for the PangoLayout's used by the widget.  Every time the widget needs a PangoLayout, it will pango_layout_copy() the default-holder.  Then we don't need to have parallel per-gtk-widget properties for every PangoLayout property.

Something along those lines...
Comment 6 Behdad Esfahbod 2010-08-24 20:12:00 UTC
Same thing about PangoContext perhaps.
Comment 7 Matthias Clasen 2014-12-06 00:33:28 UTC
I've added fallback to GtkTextTag the other day... had no idea we had a patch waiting for this in bugzilla :-(