https://bugzilla.redhat.com/show_bug.cgi?id=1823984
--- Comment #9 from Nicolas Mailhot <[email protected]> --- 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. _______________________________________________ fonts-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected]
