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 732537 - hidpi: Scale fonts on wayland
hidpi: Scale fonts on wayland
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: st
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks: 728902
 
 
Reported: 2014-07-01 09:03 UTC by drago01
Modified: 2014-07-23 12:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
hidpi: Scale fonts on wayland (4.48 KB, patch)
2014-07-01 09:03 UTC, drago01
reviewed Details | Review
hidpi: Scale fonts on wayland (1.31 KB, patch)
2014-07-01 09:27 UTC, drago01
committed Details | Review

Description drago01 2014-07-01 09:03:30 UTC
See patch, with this hidpi is at least the same state as in X11.
Comment 1 drago01 2014-07-01 09:03:33 UTC
Created attachment 279658 [details] [review]
hidpi: Scale fonts on wayland

On X11 we don't need to scale up fonts because font scaling is already handled
by clutter based xft-dpi. On wayland we need to scale fonts by ourselves so
introduce a scale-fonts property on the theme-context and set it to true on
wayland.
Comment 2 Giovanni Campagna 2014-07-01 09:15:42 UTC
Review of attachment 279658 [details] [review]:

I suppose we can't set the resolution on the clutter backend instead?
Comment 3 drago01 2014-07-01 09:27:32 UTC
(In reply to comment #2)
> Review of attachment 279658 [details] [review]:
> 
> I suppose we can't set the resolution on the clutter backend instead?

Yes we can ;)
Comment 4 drago01 2014-07-01 09:27:58 UTC
Created attachment 279659 [details] [review]
hidpi: Scale fonts on wayland

On X11 we don't need to scale up fonts because font scaling is already handled
by clutter based xft-dpi. On wayland we need to set the resolution by ourselves
so do that when the scale factor changes.
Comment 5 drago01 2014-07-01 10:02:32 UTC
Attachment 279659 [details] pushed as 775bd96 - hidpi: Scale fonts on wayland