[Fontconfig] Xft with multiple DPIs/multihead doesn't support different DPI

Behdad Esfahbod behdad at behdad.org
Mon Mar 26 08:16:51 UTC 2018


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 <bas-savannah at ubrew.org> 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
> Fontconfig at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/fontconfig
>



-- 
behdad
http://behdad.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig/attachments/20180326/6e9766b3/attachment.html>


More information about the Fontconfig mailing list