On Fri, 14 Jan 2022 15:52:06 +0000 Alan Swanson <rei...@improbability.net> said:

> > On Fri, Jan 14, 2022 at 7:01 AM Alan Swanson <rei...@improbability.net>
> > wrote:
> > > 
> > > The problem is that setting DPI to anything other than 96 breaks
> > > many applications and toolkits, not just font sizing but GUI
> > > rendering breakage. Historical cruft unfortunately but you have
> > > to deal with it.
> > > 
> > > Even the recent Xorg 21.1.2 release had to revert this type of
> > > change;
> > > https://cgit.freedesktop.org/xorg/xserver/commit/?id=35af1299e73483eaf93d913a960e1d1738bc7de6
> > > 
> > > I've personally patched Enlightenment 0.25 to fix commit
> > > 4b87781bae4a6ea70e5b6f38683e7c2ea0fd2c27 "scaling - remove
> > > custon x application dpi and move to central scaling" by
> > > reverting to 96dpi by default.
> > 
> > Would you mind sharing your patch? Non-experts like myself who expect
> > the GUI to simply 'just work' and not have to fiddle with extraneous
> > settings would *really* appreciate it. Thank you in advance for your
> > consideration.
> 
> Well, you don't have to apply the patch as you just can do the
> following instead.
> 
> > > Also needed to go through Settings-Look-Scaling-Advanced and
> > > then either unset "Set Application DPI" or adjust it to 96 to
> > > update the existing saved setting.
> 
> But attached is the patch along with another patch I tried whilst
> investigating the problem that reverts the default font size from 10
> back to 12 if unset as this was an undocumented/unintended change in
> the following commit.

100% intended. all e/efl themes have used 10 sized fonts for the past 2 decades
ort so... 12 is wrong. 100%. if rendering At the same dpi (75 which is
hard-coded in evas) then a font of size 10 should match exactly
pixel-for-pixel. and it now does. if this is too small there is a scale slider
to scale things up. set it to 1.2 and then you get essentially a size of 12 like
before. but you have now consistent font rendering between some gtk app,
chrome, qt apps AND efl apps. they all sync on sizing and a single slider gets
everything to size up and down and match.

the BASE dpi is what is assuming the "assumed font rendering dpi" is for "apps
that use "xsettings/xft" - efl apps do not use this. they render themselves
directly. the base of 75 seems to work perfectly out of the box on every system
i have. some people seem to report this is too small. i don't know what it is
about their systems that differs BUT this base slider is there in the setting.s
you don't have to patch anything like above. you just play with the slider...
set it e.g. to 96 or whatever works for you. but the idea is to have consistent
fonts between e/efl , gtk, qt, etc. etc. - sure... some apps still wont play
nice but you can do only so much.

> https://git.enlightenment.org/core/enlightenment.git/commit/src/bin/e_xsettings.c?h=v-0.25.0&id=71b5cb3e7c963f10af9be66df958ac98e92f8042
> 
> -- 
> Alan.


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
Carsten Haitzler - ras...@rasterman.com



_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to