GNOME Bugzilla – Bug 749566
HIDPI problems throughout the place
Last modified: 2018-05-22 14:19:28 UTC
Hello, I possess a screen with a dpi value of 192, and Gnumeric does not handle well some things I would like to group in this bug report if you don't mind. My tests are in the following conditions: Archlinux, Plasma 5.3.0. 1. The dpi value of the DE does not seem to be taken into account automatically. Indeed, by default, horizontal and vertical dpi values are set to 96.0. Yet, some parts seem fine, others do not. Here is a screenshot to give you an idea: http://s14.postimg.org/dhtvnskpt/gnumeric_global.png Here is a list of what seems wrong: - the cells width and height; - toolbars icons; - mouse pointer inside the table pane; - charts legend sizes (not visible on the screenshot). However, the cell name, input area and zoom values seem just fine. 2. Setting the dpi value (horizontal and vertical) to 192 does not fix everything. Here is a screenshot of the result: http://s16.postimg.org/4islrr9dx/gnumeric_global_hidpi.png Here is a list of things not impacted by the dpi value: - mouse pointer inside the table pane (I've just found out that the mouse pointer theme is actually different in the pane! Not matching the breeze theme of plasma 5); - toolbars icons; Would you mind having a look at those issues?
I don't believe there are any plans for working on this. In part because we need the toolkit to have proper support (and for the desktop and toolkit to talk to each other!) and in part because it is unclear what the right thing to do is. For example, when you write "toolbars icons" [are wrong] I answer "why?"
> For example, when you write "toolbars icons" [are wrong] I answer "why?" The size of the icons in the toolbars are not re-sized, and appear quite small. I've checked with Libreoffice, and the icons' sizes are bigger. I've compared with a computer having a 96 dpi screen to confirm. I believe this part is actually fixable. What do you think about it? However, I suppose the toolkit support issue you mentioned has more to do with the table pane and the pointer not following the dpi value. Note: I've added a screenshot of part of the toolbar, so you can better see the icons' sizes. It seems that the space for each icon is correct, but the icon does not fill the entire space.
Created attachment 303974 [details] Screenshot of the toolbar icons, showing their small size.
The size of the toolbar icons depends on your setting gconftool-2 --set --type=string /desktop/gnome/interface/toolbar_icons_size "large-toolbar" So if you have a high resolutions you probably wan tto choose a large (in terms of pixels) size for your toolbar icons.
Well, this setting doesn't seem to change anything. First, it seems to be /schemas/desktop/gnome/interface/toolbar_icon_size (so, icon without an "s"), and it expects an int, not a string. Nevertheless, with an int or the string you gave me, the size is not changed in gnumeric (tried with "large-toolbar", and ints such as 12, 24, 50, 96, 500). I changed the size, and then start gnumeric, and then close it again. Still no luck.
The same issue appears with Gnome desktop (3.16.2). I've attached another screenshot: as you can see, the tool bar size seems fine, but each button is filled with a tiny image (look at the New document icon on the left, or any of them).
Created attachment 307654 [details] Gnumeric within Gnome 3.16.2 (fullscreen screenshot, native resolution)
I noted the same problem with gnumeric version 1.12.18-2, Debian 8 (Jessie) amd64, under xfce4 (version 4.10.1). I set the DPI to 120 (not that much larger like the OP's), but still it results in fonts that are too big to fit in the cells. See next attachment. I believe this is related to the original bug report, so I file it here.
Created attachment 308796 [details] gnumeric 1.12.18 120dpi font too big to fit in cells
@Wirawan Purwanto: gnumeric 1.12.23, and same issue, but not under Gnome 3. This is the same as issue 1. Indeed, I think you changed the DPI value under the fonts settings of Xfce, but Gnumeric does not detect the DPI value used in the table pane. Results: fonts are rendered at a higher DPI value, so bigger in term of pixels, but the boxes of the table are the same size, so it's too big. To fix this issue, you need to provide Gnumeric with the right dpi value to use for the pane under Preferences / Windows / Screen, and set the horizontal and vertical dpi value of your choice.
I have the same problem: cell font too big to fit in cell, which made all my spreadsheets look like garbage on the new screen. My DPI is 192 and setting this in Prefs / Windows / Screen and then restarting gnumeric makes the sheets look OK again. In particular, even though I looked briefly for the setting, I did not find it because I did not think to look under "Windows", and so I started to look for a bug report. A user might give up and use libreoffice rather than look for a preference to set. I think people are going to keep reporting this bug, or even give up on gnumeric, until gnumeric automatically detects the DPI size, since there are few other apps that require you to set it in some preference. Maybe gnumeric should autodetect the DPI size?
*** Bug 795507 has been marked as a duplicate of this bug. ***
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnumeric/issues/284.