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 695031 - Font selector
Font selector
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: GUI
git master
Other All
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
: 170013 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-03-02 22:15 UTC by Morten Welinder
Modified: 2013-03-27 20:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Morten Welinder 2013-03-02 22:15:37 UTC
[This might belong in GOffice.]

Our current font/size selectors take us lots of space in the tool bar, yet
aren't very functional.  Surely we can do better.  Maybe we can even beg,
borrow, or steal something else somewhere.

Current problems:

1. Take up piles of space in the toolbar.  And picking a font just isn't
   a very important spreadsheet task!

2. Font (not size) selector is a large, unorganized pile of fonts.  There
   are probably even duplicates in there because of aliases.  Maybe we
   need some kind of hierarchy.

       *Common Fonts*
          Sans
          Serif
          Mono
       Fonts from this document -> submenu
       All fonts -> submenu

   or something.  Just not a mile long list!

3. Finding a font currently used elsewhere in the document is right now not
   easier than picking any other font.  Hence "Fonts from this document" in
   the above sample.
Comment 1 Andreas J. Guelzow 2013-03-03 00:37:38 UTC
*** Bug 170013 has been marked as a duplicate of this bug. ***
Comment 2 Jean Bréfort 2013-03-03 19:41:23 UTC
I'd vote for a Favorites submenu and an associated configuration key at the goffice level.
Comment 3 Jean Bréfort 2013-03-04 06:56:40 UTC
Also, a font preview as tooltip would help choose a font when you need one you don't often use.
Comment 4 Morten Welinder 2013-03-17 01:58:24 UTC
More or less done now.

The toolbar button is much, much smaller than it used to be.  It changes
sizes, though.  I am not sure what I think of that.

Sans/Serif/Monospace are currently hardcoded, although they are checked
against available fonts.

We have a reasonable sized menu by using a submenu for each initial letter.

We do not have "fonts from this document".  We might still get it.

We have a font preview, although not as a tooltip.  I think that's ok as
selecting the font doesn't change the document right away.

We use the same widget for font selection for the toolbar button as we do
for the format-cells dialog, although the latter has extra stuff like
underline, color, and strikethrough.  This might migrate into the new
font selector as optional elements in the same way that bold/italic
selector currently is.

For bitmap fonts we do not honour the sizes we could get from pango.
I don't actually seem to have any such fonts and Gnumeric has been 
changed to ignore them via a filter function.
Comment 5 Morten Welinder 2013-03-27 20:59:12 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.