Page MenuHomePhabricator

applications fonts issue with last enlightenment + efl git master
Open, Incoming QueuePublic

Description

After compiling last efl enlightenment git master, all gtk and qt applications fonts are very small.
Enlightenment is unusable.
Only enlightenment desktop fonts are normal
Arch system, Aur builds

maderios created this task.Nov 25 2020, 4:37 AM

they all look fine to me - e's scale settings are applied and e sets xsettings and xft.dpi. perhaps you have custom files/other config that somehow interacts badly?

I noticed the same thing.

May need to enable custom DPI for X Applications in Application Theme. That fixed GTK apps being tiny for me.

I don't know why gtk apps are doing that to you - for me:

both gtk2 and gtk3 apps - fyi chromium also follows and i have seen qt apps also match this too.

That's at scale 20 and gtk and efl content matches. I didn't have to enable x application custom dpi at all as its now automatic if you don't set it explicitly. didn't even have to enable x application settings - enabled automatically now... so something else is up there that doesn't happen here but i have no idea what it is.

they all look fine to me - e's scale settings are applied and e sets xsettings and xft.dpi. perhaps you have custom files/other config that somehow interacts badly?

Removing gtkrc and qt5ct.conf doesn't solve issue.
Enabling custom DPI for X Applications in Application Theme solves issue for gtk.
Problem is still there for VLC, Calibre an all qt applications

something else you have - ~/.Xresources or ~/.Xdefaults ? qt theme files?

I have no Xresources or Xdefaults files in my system

Today, i tried to launch e with fresh default installation, i got same issue

something for you is different - i can nuke all gtkrc's and Xdefault and what not and still it draws with sizing about matching efl's sizing. it works for me - i can't inspect your environment. what does xrdb -query say? have you tried to remove all gtk themes entirely from $HOME ?

xrdb -query
Xft.dpi: 75

I removed all gtk themes and config from my home, it doesn't change anything.
Anyway, I need these gtk config files
and issue is present with qt too...

and that would be right. dpi is set to 75 * scale factor. that is EXACTLY what i have here and font sizes are fine ... on multiple machines. something on your system is vastly different than on arch here. without knowing what, there is no solution. is it some freetype environment var you set? i'm on arch to and qt and gtk apps both size the same (and same as efl).

When I launch enlightenment from other user account, i get same issue.
This problem didn't happen in past git versions -> (november 18) efl-git-1.25.99.66356.g6b47edd998 and enlightenment-git-0.24.99.24316.gd247868c8
I have no issue with other X desktops like Enlightenment16 and Xfce4.

This comment was removed by abyomi0.

This is a new user "bob" i added - starter with emtpy $HOME except for ~/.xinitrc

qt, gtk2, gtk3, e / efl.. all matching... xft.dpi is 75 ... what is different on your machine?

New user, emtpy $HOME except for ~/.xinitrc

your font sizes look around right... if you change scale to 2 ... does it size up accordingly?

also a thought - what fonts packages do you have installed? :)

your font sizes look around right... if you change scale to 2 ... does it size up accordingly?

Font sizes are not right all...
There are smaller than dialog boxes fonts which themselves are very small, nearly too small.
If 'change scale to 2' means to go to screen setup, user profile, custom scale, scale 2.0
This setting changes nothing, even with scale 3.0

also a thought - what fonts packages do you have installed? :)

local/adobe-source-code-pro-fonts 2.032ro+1.052it+1.012var-1

Monospaced font family for user interface and coding environments

local/adobe-source-sans-pro-fonts 3.028-1

Sans-serif font family for user interface environments

local/adobe-source-serif-pro-fonts 3.001-2

Serif typeface for setting text. Designed to complement Source Sans Pro

local/cantarell-fonts 1:0.201-1

Humanist sans serif font

local/ftgl 2.4.0-2

OpenGL library to use arbitrary fonts

local/gnu-free-fonts 20120503-8

A free family of scalable outline fonts

local/gsfonts 20200910-1

(URW)++ Core Font Set [Level 2]

local/gtk2fontsel 0.1-7

Font selection and preview tool

local/noto-fonts 20190926-4

Google Noto TTF fonts

local/sdl2_ttf 2.0.15-2

A library that allows you to use TrueType fonts in your SDL applications (Version 2)

local/t1lib 5.1.2-8

Library for generating character- and string-glyphs from Adobe Type 1 fonts

local/ttf-bitstream-vera 1.10-14

Bitstream Vera fonts.

local/ttf-dejavu 2.37+18+g9b5d1b2f-2

Font family based on the Bitstream Vera Fonts with a wider range of characters

local/ttf-liberation 2.1.1-1

Red Hats Liberation fonts

local/ttf-linux-libertine 5.3.0-6

Serif (Libertine) and Sans Serif (Biolinum) OpenType fonts with large Unicode coverage

local/ttf-wps-fonts 1.0-5

Symbol fonts required by wps-office.

local/xorg-font-util 1.3.2-2 (xorg-fonts xorg)

X.Org font utilities

local/xorg-fonts-100dpi 1.0.3-7 (xorg)

X.org 100dpi fonts

local/xorg-fonts-75dpi 1.0.3-7 (xorg)

X.org 75dpi fonts

local/xorg-fonts-alias-100dpi 1.0.4-1

X.org font alias files - 100dpi font familiy

local/xorg-fonts-alias-75dpi 1.0.4-1

X.org font alias files - 75dpi font familiy

local/xorg-fonts-alias-misc 1.0.4-1

X.org font alias files - misc font familiy

local/xorg-fonts-encodings 1.0.5-2 (xorg-fonts xorg)

X.org font encoding files

local/xorg-fonts-misc 1.0.3-10

X.org misc fonts

local/xorg-mkfontscale 1.2.1-2 (xorg-apps xorg)

Create an index of scalable font files for X

when you changed to scale 2 or 3 - did you restart apps? qt apps dont rescale on the fly - gtk3 doesn't seem to either. gtk2 ones do. do you have a custom dpi enabled. if you do then this overrides the scale settings:

that is how you should have it unless you want to override scale settings. this x application setting will override xsettings but not xft.dpi - xft.dpi will be controlled by regular e scale settings. i have not removed these (but these should probably be removed now that scale is driven from a single location). just make sure that you don't have custom dpi enabled. make sure you re-run apps that don't seem to change scaling on the fly.

you have basically the same xorg font pkgs as me but your ttfs do vary. i thought for a minute it may have to do with 75dpi vs 100dpi fonts being installed for x... i have both... but that seemed unlikely as most fonts being used are ttf now...

abyomi0 added a comment.EditedNov 29 2020, 5:48 AM

Looks like something is off for me, too.

when you changed to scale 2 or 3 - did you restart apps? qt apps dont rescale on the fly - gtk3 doesn't seem to either. gtk2 ones do. do you have a custom dpi enabled. if you do then this overrides the scale settings:

Yes, i restart apps and enlightenment, no size fonts change

that is how you should have it unless you want to override scale settings. this x application setting will override xsettings but not xft.dpi - xft.dpi will be controlled by regular e scale settings. i have not removed these (but these should probably be removed now that scale is driven from a single location). just make sure that you don't have custom dpi enabled. make sure you re-run apps that don't seem to change scaling on the fly.

I don't have custom dpi enabled in above example.

you have basically the same xorg font pkgs as me but your ttfs do vary. i thought for a minute it may have to do with 75dpi vs 100dpi fonts being installed for x... i have both... but that seemed unlikely as most fonts being used are ttf now...

Screen settings

@abyomi0 ... dud you check the file it told you to check? ... basically you are not permitted access.. you are not a member of any of the groups listed or an explicitly listed user... that's a different issue - but otherwise your scaling seems fine - all the things are larger and scaled up to about the same size. different fonts will of course size differently and if qt and gtk and efl all use a different font - yes - he sizes will vary a bout. it also depends on the base font size (10, 11, 12, whatever) in the themes for each etc.

@maderios - your font sizing looks about right to me. you will only see if it is working right or not if you use extreme scaling like 0.5 or 2.0 or 3.0 etc. - then you really notice. otherwise as i just mentioned to @abyomi0 - different fonts used and different initial font size (that is rendered at the given dpi) will make the font alter slightly in size of course.

You wouldn't happen to have Enable Custom Fonts enabled, would you?

i don't - no.

This commit solved issue. I discovered it was possible before it :) https://git.enlightenment.org/core/enlightenment.git/commit/?id=4b87781bae4a6ea70e5b6f38683e7c2ea0fd2c27
I choosed 75 dpi.
This setting is very important but user has to click 4 times: -> settings -> scaling -> advanced -> scale relative to screen dpi
I think this is not very clear for "end users" but may be i'm wrong...

well the 75dpi * scale is what the code did before.. unless u had a xustom dpi for xsettings. i removed that now. now you get to set base dpi (75 by default) and a chckbox to turn this on or off and bot xsttings and xft.dpi are set to the same value as long s the checkbox says its on...

fyi the basic scale dialog - dpi scaling is the first option top-left in the grid of available scale options. you dont need the advanced dialog unless you want to change the base dpi or use a scale factor not offered in the basic or want to disable e's setting of xsettings / xft.cpi

I choose 78 dpi finally because firefox and thunderbird sidebar fonts are very very small.
But i get too big dialog fonts, so, i change size fonts -> fonts -> enable custom class-> sans 9.
It's ok for dialog boxes but now, firefox and thunderbird sidebar fonts are too small...
To be short: i need 78 dpi but dialog box fonts become too big. I can't change them because it changes some applications fonts size too.
Impossible to separate dialog box / applications fonts size settings.

dialog boxes in firefox? but this smells to me more of an issue with firefox and/or your gtk default themes or maybe qt where they just don't use consistent fonts and font sizes, thus make size right for one thing - something else is too small or too big. e can't go change what apps and toolkits do per window/dialog box/widget so at some point you may have to complain to the relevant projects... all e is doing is modifying the dpi and then from there clients render at different sizes.

I never wrote anything about 'dialog boxes in firefox' but about enlightenment dialog boxes.
When I change enlightenment dialog box fonts size to get smaller size, firefox and thunderbird sidebar fonts are too small...
I have no issue with firefox, thunderbird, gtk in other desktops like enlightenment16, xfce4, fluxbox, etc...

well you can adjust the bapplication base dpi - but all the default theme fonts except for some special cases like large headers etc. use size 10 (at 75dpi) with freedype. application and toolkit themes may use a different font and different size by default. different fonts will appear to be differently sized when just font changes. there isn't a sane solution other that use a single toolkit only ever. you can fine tune and fiddle around but there is limited stuff that can be done with everything fragmented. these days chrome/chromium is its own toolkit too - all electron apps too and firefox is doing more of its own thing too.