<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Mar 26, 2018 at 1:19 AM, Ben Stern <span dir="ltr"><<a href="mailto:bas-savannah@ubrew.org" target="_blank">bas-savannah@ubrew.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Behdad,<br>
<br>
I used KDE to set the DPI, but I don't use a desktop environment in normal<br>
life. Is there truly no way to set different resolutions without using a<br>
desktop environment? How does GNOME do it? It must tell fontconfig<br>
somehow, mustn't it?<br></blockquote><div><br></div><div>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.<br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks,<br>
Ben<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Mon, Mar 26, 2018 at 01:16:51AM -0700, Behdad Esfahbod wrote:<br>
> Hi Ben,<br>
><br>
> You need a desktop environment that supports different DPIs across<br>
> different displays. I *think* most recent versions of GNOME do that but I'm<br>
> not sure.<br>
><br>
> behdad<br>
><br>
> On Mon, Mar 26, 2018 at 12:52 AM, Ben Stern <<a href="mailto:bas-savannah@ubrew.org">bas-savannah@ubrew.org</a>> wrote:<br>
><br>
>> In my fontconfig/conf.d, I can specify fontconfig XML which states a given<br>
>> DPI, but I can't specify this per-head.<br>
>><br>
>> I'm running multihead on monitors with different resolutions, and my<br>
>> choices<br>
>> are huge fonts on the lower-resolution monitor and normal sizes on the<br>
>> higher resolution monitor, or unreadably small fonts on this hi-res monitor<br>
>> and normal size on the low-res monitor.<br>
>><br>
>> xdpyinfo | grep inch correctly tells me<br>
>> on :0.0: 157x157 dots per inch<br>
>> on :0.1: 94x94 dots per inch<br>
>><br>
>> xrdb -query | grep dpi correctly tells me<br>
>> on :0.0 XFt.dpi: 157<br>
>> on :0.1 XFt.dpi: 94<br>
>><br>
>> farad:~/.config/fontconfig/<wbr>conf.d$ grep -i -A2 dpi *<br>
>> 19-DisplayProperties.conf: <edit name="dpi" mode="assign"<br>
>> binding="same"><br>
>> 19-DisplayProperties.conf- <double>157.0</double><br>
>> 19-DisplayProperties.conf- </edit><br>
>><br>
>> Note that without the 19-DisplayProperties.conf setting the DPI to 157<br>
>> explicitly, the menus and other fontconfig-rendered text on my hi-res<br>
>> monitor appears to be defaulting to the historic 96 DPI setting, and are<br>
>> therefore tiny, because they're approximately 60% of the size they ought to<br>
>> be.<br>
>><br>
>> How can I tell fontconfig to use the correct DPI on a given head?<br>
>><br>
>> (I tried to open this as a bug and was directed here instead.)<br>
>><br>
>> Thanks,<br>
>> Ben<br>
<br>
--<br>
Ben Stern<br>
This space intentionally left blank.<br>
______________________________<wbr>_________________<br>
Fontconfig mailing list<br>
<a href="mailto:Fontconfig@lists.freedesktop.org">Fontconfig@lists.freedesktop.<wbr>org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/fontconfig" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/fontconfig</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">behdad<br><a href="http://behdad.org/" target="_blank">http://behdad.org/</a></div>
</div></div>