Re: Current state of DPI settings under X
Pekka Paalanen <[email protected]>
| Newsgroups | gmane.linux.xdg.devel |
|---|---|
| Message-ID | <20170726095254.0bdc3ff0@eldfell> |
On Tue, 25 Jul 2017 21:15:31 +0300 Vladimir Kudrya <[email protected]> wrote: > Hi all! > > I would like to know the current 'proper' way of setting DPI in X (if > there is any). > I see conflicting information on the topic, and different applications > seem to have different source of this setting. I currently counted 3 of > them: > - fontconfig > - xrdb > - randr > > Different versions of gtk2 seem to either demand or ignore dpi setting > in xrdb. > And there is also this recent change that gives xdpyinfo the ability to > state different DPI for different outputs simultaneously: > https://lists.x.org/archives/xorg-devel/2017-April/053430.html > > Is there any DE- and toolkit-agnostic approach for letting applications > know the proper DPI and/or notifying them that DPI has changed? Hi, rather than asking "how to set the DPI", why do you want to set the DPI, what do you hope to accomplish? Are you looking for making fonts physically the same size on different monitors? Are you trying to cope with HiDPI monitors? Are you trying to make physical measurement units in applications correspond to real physical dimensions on the screen? Even these are fairly low-level questions and would need an explanation on what you are really trying to make to work. Some goals are false to begin with, some are reasonable but technically hard, and some have existing solutions depending on software. In general, DPI is a mess, and very often the actual DPI number is not even what one should be concerned with. Thanks, pq _______________________________________________ xdg mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/xdg
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAll4PEYACgkQI1/ltBGq qqd7qw//aqPLKedmSn7jEHt9p/aChxZDpTt4nQt1a6jwCiQEinXuwUHIGK3XAkSl aIjVkGBEPlsXA9+74KUbEbMr/NI920vqruCAb2KQ143wW/MCVY9fuuyBev2x75Ry hEXlHpNFjF1P57+SCL3+xGqlUoRlB2AplSOP3umeUswwilpY8SRW7QNIYbA/MP53 nmwHHBojWvSDcUWj9Q8XIq1o+T7BEadrJkGxVdMwnjrUC/XE90uo2L3L9uedYc6w 1bdOZmYbRFZv/0/xRgWDF24tZT9aZnwGF9oCYv8uAfpIZwsWTv2X4zW67+pNs4Oz GQtoHf7gXnkx6IuHmlHJSIj0B9y2+Ns9l43x0PwQlFDx0v1C928V0RU7fnmdvYd4 Upo0LwlBoy3VnPsESoI3sAgZoWizNvTtbKqCXCtiqbD8sgs/al9XsRd3ifJe8g4u Zak4JuBWq3rp7RIoKqCkJ540HpVc7VZO47ZjiLc2ukH3MOb2yGYaOOj9fY4JWsl9 ljv0h8lnXuV1psOeOI9gx5aTFn4th0BybQJJsBIwcsU1b03uEM7e5gphn0Ap5wOH yZ/E2gum6/8wW0YqaqfuiH9+bM8MMuIzWPvKjHAr7p9G7UzxbSZQfnYlr04LxHMY 9BhKUbRandp44jQpxdSxAmEvcuFaDL0ymkXvNf8ZMjYt6JXk1LI= =ljT1 -----END PGP SIGNATURE-----