Font styles other than Bold and Italic are not supported
Submitted by Lukas
Link to original bug (#567173)
Description
I have a number of fonts installed on my system with styles like (output of "fc-list"): Helvetica:style=Narrow Helvetica:style=Narrow Bold Univers:style=47 Condensed Light Univers:style=47 Condensed Light Oblique
It is impossible to use these fonts with Gnumeric as it only supports the two font styles Bold and Italic. Fixing this is probably not simple because these two font styles are hardwired into the source code and into the Gnumeric file format.
My suggestion would be to change "struct _GnmFont" in style-font.h so that the boolean values "is_bold" and "is_italic" are replaced by a "char *font_style". The two boolean variables are only referenced in about a dozen other places in the source code.
When saving a workbook, font descriptions could either look like this: <gmr:Font Unit="10" Style="Narrow Bold" Underline="0" StrikeThrough="0">Helvetica</gmr:Font> or use a backward-compatible format: <gmr:Font Unit="10" Style="Narrow Bold" Bold="0" Italic="0" Underline="0" StrikeThrough="0">Helvetica</gmr:Font>
When loading a workbook which only contains the boolean Bold and Italic values, but does not include the exact name of the font style, Gnumeric should check if a font exists with "style=Bold" (for Bold=1) and "style=Italic" or "style=Oblique" (for Italic=1).
Ridiculous as it may seem, this issue is the only reason I still need to use XL from time to time: I've been using Gnumeric for more than 6 years now to prepare my yearly filings to the IRS (German "Finanzamt"). I always prepare the raw version in Gnumeric, export that to XLS format, import it in XL, change the fonts and finally print it out. So if Gnumeric would support rich font styles, that would really spare me a lot of hassle.
Otherwise, great program! Using it almost daily!
For the record: MacOS 10.4, Gnumeric 1.8.1 (latest Fink package)
Version: 1.8.x