Re: Xft with multiple DPIs/multihead doesn't support different DPI
Behdad Esfahbod <[email protected]>
| Newsgroups | gmane.comp.fonts.fontconfig |
|---|---|
| Message-ID | <CAF63+7XCkC9LLN9g3U9391nhSC5ifa+L_rSzptXKxSfp=G8zxA@mail.gmail.com> |
On Mon, Mar 26, 2018 at 1:19 AM, Ben Stern <[email protected]> wrote: > Hi Behdad, > > I used KDE to set the DPI, but I don't use a desktop environment in normal > life. Is there truly no way to set different resolutions without using a > desktop environment? How does GNOME do it? It must tell fontconfig > somehow, mustn't it? > Desktop environments can handle multiple differing display densities in different ways. They can rescale the application for example, and I *think* that's what GNOME does. They can also tell fontconfig different DPI numbers at run-time, but that's really not the hard part about it. > Thanks, > Ben > > > On Mon, Mar 26, 2018 at 01:16:51AM -0700, Behdad Esfahbod wrote: > > Hi Ben, > > > > You need a desktop environment that supports different DPIs across > > different displays. I *think* most recent versions of GNOME do that but > I'm > > not sure. > > > > behdad > > > > On Mon, Mar 26, 2018 at 12:52 AM, Ben Stern <[email protected]> > wrote: > > > >> In my fontconfig/conf.d, I can specify fontconfig XML which states a > given > >> DPI, but I can't specify this per-head. > >> > >> I'm running multihead on monitors with different resolutions, and my > >> choices > >> are huge fonts on the lower-resolution monitor and normal sizes on the > >> higher resolution monitor, or unreadably small fonts on this hi-res > monitor > >> and normal size on the low-res monitor. > >> > >> xdpyinfo | grep inch correctly tells me > >> on :0.0: 157x157 dots per inch > >> on :0.1: 94x94 dots per inch > >> > >> xrdb -query | grep dpi correctly tells me > >> on :0.0 XFt.dpi: 157 > >> on :0.1 XFt.dpi: 94 > >> > >> farad:~/.config/fontconfig/conf.d$ grep -i -A2 dpi * > >> 19-DisplayProperties.conf: <edit name="dpi" mode="assign" > >> binding="same"> > >> 19-DisplayProperties.conf- <double>157.0</double> > >> 19-DisplayProperties.conf- </edit> > >> > >> Note that without the 19-DisplayProperties.conf setting the DPI to 157 > >> explicitly, the menus and other fontconfig-rendered text on my hi-res > >> monitor appears to be defaulting to the historic 96 DPI setting, and are > >> therefore tiny, because they're approximately 60% of the size they > ought to > >> be. > >> > >> How can I tell fontconfig to use the correct DPI on a given head? > >> > >> (I tried to open this as a bug and was directed here instead.) > >> > >> Thanks, > >> Ben > > -- > Ben Stern > This space intentionally left blank. > _______________________________________________ > Fontconfig mailing list > [email protected] > https://lists.freedesktop.org/mailman/listinfo/fontconfig > -- behdad http://behdad.org/ _______________________________________________ Fontconfig mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/fontconfig