Relative font sizes/weights not possible in gtkrc

Bug #698008 reported by Matthew Paul Thomas
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ayatana Ubuntu
Invalid
Undecided
Unassigned
GTK+
Fix Released
Wishlist
gtk+2.0 (Ubuntu)
Invalid
Wishlist
Andrea Cimitan

Bug Description

[This is copied from <https://bugzilla.gnome.org/show_bug.cgi?id=325767> so that it can be linked to a blueprint.]

Currently the "font_name" field in the gtkrc file is the only way to change fonts and it only allows an absolute change. If a user wants to use a smaller font for certain widgets or if an application tries to provide a gtkrc file that results in a more compact dialog layout, it would be a lot nicer if the font could be specified relative to the desktop-wide configured font. This missing feature leads for example to <https://bugzilla.gnome.org/show_bug.cgi?id=325324>.

affects: ubuntu → gtk+2.0 (Ubuntu)
Changed in gtk:
importance: Unknown → Wishlist
status: Unknown → New
Revision history for this message
David Barth (dbarth) wrote :

Cimi: can you investigate the possibility of providing support for relative font sizes / weights in the theme? Thanks.

Changed in ayatana-ubuntu:
assignee: nobody → Andrea Cimitan (cimi)
status: New → Confirmed
assignee: Andrea Cimitan (cimi) → nobody
Revision history for this message
Andrea Cimitan (cimi) wrote :

A great implementation will come with gtk+ 3.2 (in time for Natty+1, then?)
Don't think it will worth backporting patch to gtk+2.0, cause it won't be a backport but a "new patch", due to the way of how GtkStyleContext is different from GtkStyle.
Cheers

Changed in gtk+2.0 (Ubuntu):
assignee: nobody → Andrea Cimitan (cimi)
Changed in ayatana-ubuntu:
status: Confirmed → Invalid
Revision history for this message
Andrea Cimitan (cimi) wrote :

Currently it's possible to specify a full font name, something like "Ubuntu Bold 8", but not relative. So we could have inconsistence both for the font name and the font dimension the user could set.
In order to change that, a core change in Gtk+ is required.
That will come for upstream Gtk+ 3.2, so Natty+1 I suppose.

Changed in gtk+2.0 (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Andrea Cimitan (cimi) wrote :

won't happen in 2.x

Changed in gtk+2.0 (Ubuntu):
status: Triaged → Invalid
Changed in gtk:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.