GNOME Bugzilla – Bug 163223
Rich text with explicit sizes does not zoom
Last modified: 2011-09-30 19:23:38 UTC
Please describe the problem: While importing a MS Excel file, I noticed some headings being incorrectly displayed with different zoom settings (150%, 50%, etc.). It seems to happen in cells with characters differently formatted (bold, italic). Steps to reproduce: 1. Make a file in Microsoft Excel, type "A B C" in one cell and make B bold 2. Open in Gnumeric and change zoom (to 200% and 50%, for example) 3. Actual results: Only the first character gets resized with zoom Expected results: I'd expect all text to be correctly resized Does this happen every time? yes Other information: no
MS Excel versions XP (2002) and 2000
THis does not seem to happen when the data is initially entered in gnumeric. So it seems to be an XL Import issue.
It is a problem with the import to some extent, XL stores things in a way that forces us to set all of the attributes each time something changes. Which exposes the real bug here.
Fixed in CVS by removing the pre-scaling of the font sizes and wrapping everything in a scale attribute. I did a bit of clean up in there and split the definition of GnmFont out into a new file to speed compile times.
In version 1.4.2, a problem seems to remain with this fix. I made a test file with 9 equal cells(text "aaaaa"). The formats in the cells are n=normal font, b=bold, it=italic. cell #, format 1, nnnnn 2, iiiii 3, bbbbb 4, niibb 5, nbbii 6, iinbb 7, iibbn 8, bbnii 9, bbiin Whe I open this file (created in Excel XP) with Gnumeric, I get: cell #, text 1, aaaaa 2, aaaaa 3, aaaaa 4, a 5, a 6, aa 7, aa 8, aa 9, aa The whole text appears in the cell when I click the data entry area to modify the cell contents, but hides again when I leave the cell. This happens at any zoom setting.
Coould you attach that test sheet, please?
Created attachment 36603 [details] Test file
I'm not experiencing the problem anymore (version 1.4.2 Debian GNU/Linux)