Bug 1397700

Summary: window title fonts are rendered too large after changing DPI and font size
Product: [Fedora] Fedora Reporter: Dominik 'Rathann' Mierzejewski <dominik>
Component: marcoAssignee: Wolfgang Ulbrich <fedora>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: fedora, jan.public, stefano, vkareh
Target Milestone: ---Keywords: FutureFeature, Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-28 10:19:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Screenshot at 96dpi with all fonts set to 10
none
Screenshot at 96dpi with desktop and window title fonts set to 6 and all other fonts set to 10
none
Screenshot at 160dpi with all fonts set to 8
none
sreenshot-96dpi-after-fresh installation none

Description Dominik 'Rathann' Mierzejewski 2016-11-23 08:33:54 UTC
Created attachment 1223057 [details]
Screenshot at 96dpi with all fonts set to 10

Description of problem:
In System->Preferences->Look and Feel->Appearance->Fonts (mate-appearance-properties -p fonts), setting all fonts to size 10 makes the desktop and the window title fonts much larger than the rest at 96dpi and I have to set those two to 6 to make them appear the same size as the rest. At 160dpi, all fonts look more or less the same size.

Version-Release number of selected component (if applicable):
mate-control-center-1.16.0-1.fc25.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. System->Preferences->Look and Feel->Appearance
2. Select BlueMenta or TraditionalOk scheme (I have tested only these two)
3. Go to Fonts tab
4. Click Details
5. Set Resolution to 96dpi
6. Set all fonts' size to 10.

Actual results:
Desktop and Window Title fonts are larger than the rest.

Expected results:
All fonts should be the same size if I set them to the same size.

Additional info:
Screenshots attached.

Comment 1 Dominik 'Rathann' Mierzejewski 2016-11-23 08:34:45 UTC
Created attachment 1223058 [details]
Screenshot at 96dpi with desktop and window title fonts set to 6 and all other fonts set to 10

Comment 2 Dominik 'Rathann' Mierzejewski 2016-11-23 08:35:38 UTC
Created attachment 1223059 [details]
Screenshot at 160dpi with all fonts set to 8

Comment 3 Dominik 'Rathann' Mierzejewski 2016-11-23 08:36:45 UTC
This is a regression from Fedora 24 where it used to work correctly.

Comment 4 Wolfgang Ulbrich 2016-11-25 10:17:40 UTC
Created attachment 1224192 [details]
sreenshot-96dpi-after-fresh installation

Comment 5 Wolfgang Ulbrich 2016-11-25 10:18:15 UTC
Hmm, i can't confirm the issue.
See my screenshot from a fresh installed f25 VM from mate-compiz spin with BlueMenta theme and using 96 dpi and font-size 10px everywhere.
I don't see a regression.

Comment 6 Dominik 'Rathann' Mierzejewski 2016-11-25 18:48:05 UTC
Thanks for testing. My machine was upgraded from F24, so that might be part of the issue. Do you have any idea what setting and where might be responsible for this?

Comment 7 Dominik 'Rathann' Mierzejewski 2016-11-28 10:19:30 UTC
Somehow it magically fixed itself after another reboot. Sorry for the noise.

Comment 8 Dominik 'Rathann' Mierzejewski 2016-12-05 11:05:34 UTC
Ok, I found a way to reproduce, but it requires an additional screen.

1. System->Preferences->Look and Feel->Appearance
2. Select BlueMenta or TraditionalOk scheme (I have tested only these two)
3. Go to Fonts tab
4. Click Details
5. Set Resolution to 160dpi
6. Set all fonts' size to 8.
7. Connect an external monitor.
8. Set up to display only on the external monitor.
9. Set Resolution to 96dpi
10. Set all fonts' size to 10.

Actual results:
Desktop and Window Title fonts are larger than the rest.

Expected results:
All fonts should be the same size if I set them to the same size.

Additional info:
The reverse (Desktop and Window Title fonts too small) happens if I start with low-DPI screen (external monitor) and switch to a high-DPI screen (internal display).

Logging out and in "fixes" this.

Comment 9 Wolfgang Ulbrich 2016-12-05 17:33:43 UTC
Can you please open a report at upstream?
https://github.com/mate-desktop/mate-control-center
I don't think that it is theme related as it is fine if you logging out and in.
Does /usr/libexec/mate-settings-daemon --replace & the same ?
Sadly i don't have a box with a second monitor.

Comment 10 Dominik 'Rathann' Mierzejewski 2016-12-05 18:18:29 UTC
(In reply to Wolfgang Ulbrich from comment #9)
> Can you please open a report at upstream?
> https://github.com/mate-desktop/mate-control-center
> I don't think that it is theme related as it is fine if you logging out and
> in.
> Does /usr/libexec/mate-settings-daemon --replace & the same ?
> Sadly i don't have a box with a second monitor.

Thanks for the idea, but restarting the mate-settings-daemon with the above command after (dis-)connecting the external monitor doesn't change anything, only log-out/log-in helps. Filed upstream as: https://github.com/mate-desktop/mate-control-center/issues/261 .

Comment 11 Dominik 'Rathann' Mierzejewski 2017-07-24 20:17:22 UTC
Still unfixed in Fedora 26:
marco-1.18.1-1.fc26.x86_64
mate-desktop-1.18.0-5.fc26.x86_64
mate-control-center-1.18.2-2.fc26.x86_64

Comment 12 Wolfgang Ulbrich 2017-07-24 20:28:53 UTC
Here are 2 PRs for fixing HDPI support at upstream.
Try it out please 
https://github.com/mate-desktop/mate-panel/pull/624
and
https://github.com/mate-desktop/marco/pull/336

Comment 13 Dominik 'Rathann' Mierzejewski 2017-07-30 23:58:46 UTC
Thanks for the pointers, but these patches have no effect on my issue.

Comment 14 Fedora End Of Life 2018-05-03 08:18:55 UTC
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '26'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 26 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 15 Dominik 'Rathann' Mierzejewski 2018-05-07 10:14:58 UTC
Still an issue on F28.
marco-1.20.1-2.fc28.x86_64
mate-control-center-1.20.2-2.fc28.x86_64
mate-desktop-1.20.1-5.fc28.x86_64
mate-panel-1.20.1-6.fc28.x86_64

Comment 16 Wolfgang Ulbrich 2018-05-07 12:16:01 UTC
For using a HIDPI monitor you need to set.
[rave@mother ~]$ gsettings get org.mate.interface window-scaling-factor
2

Auto-detection of windows-scaling doesn't work.
Same for the new switch in font-settings of mate-appearance-properties.
Auto-detection needs to disable here too.

Comment 17 Dominik 'Rathann' Mierzejewski 2018-05-07 14:10:42 UTC
That setting supports only integers so it doesn't solve the issue even as a workaround.

Comment 18 Wolfgang Ulbrich 2018-05-07 14:59:00 UTC
As a workaround?
This setting you should use for a HIDPI monitor, the non-hidipi monitor you can set up with Xrandr not use scaling, see https://wiki.archlinux.org/index.php/HiDPI#Multiple_displays
This is needed due a limitation of X.

I am using this for myself with 2 monitors (HIDPI+ non-hidpi), and i don't see wrong font-sizes here.

But maybe i don't understand your issue :)

Comment 19 Dominik 'Rathann' Mierzejewski 2018-05-15 09:00:11 UTC
(In reply to Wolfgang Ulbrich from comment #18)
> As a workaround?
> This setting you should use for a HIDPI monitor,

It doesn't work for displays with DPI ~160, like a 1920x1080 13.3" screen. Here, I need different scaling factors: 0.8 for fonts and 1.5 for icons and panels for things to look good.

> the non-hidipi monitor you
> can set up with Xrandr not use scaling, see
> https://wiki.archlinux.org/index.php/HiDPI#Multiple_displays
> This is needed due a limitation of X.
> 
> I am using this for myself with 2 monitors (HIDPI+ non-hidpi), and i don't
> see wrong font-sizes here.

I don't need this to work with 2 monitors with differing DPI. I'm aware of the limitation.

> But maybe i don't understand your issue :)

The issue is not being able to switch between a single ~160 DPI display and a single ~90 DPI display without logging out and in again to apply widget and font size settings correctly. I'm fine with restarting Firefox, but losing all my terminal windows is a major annoyance.

Comment 20 Wolfgang Ulbrich 2018-05-15 09:40:19 UTC
I hope upstream will fix it some day.

Comment 21 Ben Cotton 2019-05-02 21:46:40 UTC
This message is a reminder that Fedora 28 is nearing its end of life.
On 2019-May-28 Fedora will stop maintaining and issuing updates for
Fedora 28. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora 'version' of '28'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 28 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 22 Dominik 'Rathann' Mierzejewski 2019-05-07 11:40:41 UTC
Still reproducible.

mate-control-center-1.20.4-1.fc29.x86_64
marco-1.20.3-1.fc29.x86_64
caja-1.20.3-1.fc29.x86_64

I found that I can get the correct font size in window title bars if I run "marco --replace".
The desktop icons and their names are still too small/too large. The desktop preferences context menu (which you get by right-clicking on the desktop) is also the wrong size.
The workaround for the last issue is killing caja. The sizes are fine after it restarts itself.

So it looks like there are two bugs (marco and caja). Reassigning this to marco and, I'll open a separate report for caja.

Comment 23 Victor Kareh 2019-05-07 13:19:08 UTC
So the issue here seems to be that marco is not responding correctly to changes in font DPI, and so requries a replace/restart. Changing to a monitor with different resolution just seems to be what triggers the visibility of this bug. Both marco and caja seem to be affected by this.

Comment 24 Ben Cotton 2019-10-31 19:22:34 UTC
This message is a reminder that Fedora 29 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 29 on 2019-11-26.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '29'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 29 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 25 Dominik 'Rathann' Mierzejewski 2019-11-03 22:12:26 UTC
Still reproducible on F31:
marco-1.22.3-1.fc31.x86_64

Comment 26 Ben Cotton 2020-11-03 14:58:00 UTC
This message is a reminder that Fedora 31 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 31 on 2020-11-24.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '31'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 31 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 27 Dominik 'Rathann' Mierzejewski 2020-11-04 09:07:49 UTC
No change in F33: marco-1.24.1-2.fc33.x86_64 .

Comment 28 Ben Cotton 2021-11-04 17:22:15 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '33'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 29 Dominik 'Rathann' Mierzejewski 2021-11-05 10:43:38 UTC
Still reproducible in F35: marco-1.26.0-1.fc35.x86_64 .

Comment 30 Ben Cotton 2022-11-29 16:44:52 UTC
This message is a reminder that Fedora Linux 35 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 35 on 2022-12-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '35'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 35 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 31 Dominik 'Rathann' Mierzejewski 2022-12-02 10:24:02 UTC
Still reproducible in F36: marco-1.26.1-1.fc36.x86_64