[Bug 1823984] Bold fonts in qt applications appear much too heavy
by bugzilla@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1823984
--- Comment #9 from Nicolas Mailhot <nicolas.mailhot(a)laposte.net> ---
qt is probably confused by all the broken metadata in Cantarell
$ fc-scan -f
"%{family};%{style};%{fullname[0]};%{width};%{weight};%{slant};%{fontversion};%{file}\n"
/usr/share/fonts/cantarell | sort -t ';' -k1,1d -k4,4n -k5,5n -k6,6n -k2,2d
-k7,7dr | uniq | column --separator ';' -t
Cantarell Cantarell Regular 100
[0 205] 0 13173 /usr/share/fonts/cantarell/Cantarell-VF.otf
Cantarell Thin Cantarell Regular 100
0 0 13173 /usr/share/fonts/cantarell/Cantarell-VF.otf
Cantarell Light Cantarell Regular 100
50 0 13173 /usr/share/fonts/cantarell/Cantarell-VF.otf
Cantarell Regular Cantarell Regular 100
80 0 13173 /usr/share/fonts/cantarell/Cantarell-Regular.otf
Cantarell Regular Cantarell Regular 100
80 0 13173 /usr/share/fonts/cantarell/Cantarell-VF.otf
Cantarell Bold Cantarell Bold 100
200 0 13173 /usr/share/fonts/cantarell/Cantarell-Bold.otf
Cantarell Bold Cantarell Regular 100
200 0 13173 /usr/share/fonts/cantarell/Cantarell-VF.otf
Cantarell Extra Bold Cantarell Regular 100
205 0 13173 /usr/share/fonts/cantarell/Cantarell-VF.otf
Cantarell,Cantarell Extra Bold Extra Bold,Regular Cantarell Extra Bold 100
205 0 13173 /usr/share/fonts/cantarell/Cantarell-ExtraBold.otf
Cantarell,Cantarell Light Light,Regular Cantarell Light 100
50 0 13173 /usr/share/fonts/cantarell/Cantarell-Light.otf
Cantarell,Cantarell Thin Thin,Regular Cantarell Thin 100
0 0 13173 /usr/share/fonts/cantarell/Cantarell-Thin.otf
A nice font family would have just "Cantarell" in the first column, the actual
face name in the second (not a list ending with Regular) and the third column
equal to first <space> second (except for the Regular face, that should just
have family as first name). Regular is very dangerous to sprinkle in font
metadata, it means default in OpenType, some implementations will generate bold
and italic from Regular if they do not manage to locate real Bold or Italic.
Though, a lot of the breakage qt-side would be avoided if it used the first
entry in fontconfig lists, fallbacking to others only when there is no
first-level match.
That being said Cantarell is far from the first font family to use broken
constructs in its metadata, to workaround bugs in some font stack
implementation (triggering bugs in other font stack implementations). Things
would be so nice if everyone just stuck to what the OpenType spec recommends.
--
You are receiving this mail because:
You are on the CC list for the bug.
4 years, 1 month
[Bug 1823984] Bold fonts in qt applications appear much too heavy
by bugzilla@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1823984
Nikolaus Waxweiler <madigens(a)gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |madigens(a)gmail.com
--- Comment #6 from Nikolaus Waxweiler <madigens(a)gmail.com> ---
Created attachment 1679807
--> https://bugzilla.redhat.com/attachment.cgi?id=1679807&action=edit
Screenshot of Qt Creator
I think this may be a Qt bug triggered by something in the font. With fonts,
you can never really be sure. Anyone here familiar with Qt's text rendering
facilities to help track this down? Basically, Qt synthesizes a bold face when
it doesn't have to (it's all in the font). Here's the thing: I'm on F31 with
only the variable font installed and I cannot reproduce the bug.
--
You are receiving this mail because:
You are on the CC list for the bug.
4 years, 1 month
[Bug 1823984] Bold fonts in qt applications appear much too heavy
by bugzilla@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1823984
Jan Grulich <jgrulich(a)redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |cosimo.cecchi(a)gmail.com,
| |fonts-bugs(a)lists.fedoraproj
| |ect.org, ian(a)ianweller.org,
| |klember(a)redhat.com,
| |me(a)fale.io
Component|qt5-qtbase |abattis-cantarell-fonts
Assignee|than(a)redhat.com |klember(a)redhat.com
--
You are receiving this mail because:
You are on the CC list for the bug.
4 years, 1 month