Open vemoo opened 2 years ago
I use the Arch package ttf-croscore, version 20220502-1, and can confirm this issue, namely that text styled in italics appears in bold italics with the Arimo font. I also noticed that Arimo-BoldItalic.ttf
has its font family listed as both Arimo Bold
and Arimo
and its style as both Bold Italic
and Italic
. I suspect that this may be an additional contributing factor to the problem.
Update: Upgrading my system's ttf-croscore package to 20220502-3, which changes the font's assigned weight, resolves the issue. The terminal output below is from before the update.
$ fc-query /usr/share/fonts/croscore/Arimo-BoldItalic.ttf
Pattern has 26 elts (size 32)
family: "Arimo"(s) "Arimo Bold"(s)
familylang: "en"(s) "en"(s)
style: "Bold Italic"(s) "Italic"(s)
stylelang: "en"(s) "en"(s)
fullname: "Arimo Bold Italic"(s)
fullnamelang: "en"(s)
slant: 100(i)(s)
weight: 80(f)(s)
width: 100(f)(s)
foundry: "GOOG"(s)
file: "/usr/share/fonts/croscore/Arimo-BoldItalic.ttf"(s)
index: 0(i)(s)
outline: True(s)
scalable: True(s)
charset:
0000: 00000000 ffffffff ffffffff 7fffffff 00000000 ffffffff ffffffff ffffffff
0001: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
0002: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
0003: ffffffff ffffffff ffffffff fcffffff ffffd7f0 fffffffb ffffffff ffffffff
0004: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
0005: ffffffff 0000ffff 00000000 00000000 fffe0000 ffffffff ffff00ff 001f07ff
001a: 00000000 00000000 00000000 00000000 00000000 7fff0000 00000000 00000000
001c: 00000000 00000000 00000000 00000000 000001ff 00000000 00000000 00000000
001d: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff f83fffff
001e: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
001f: 3f3fffff ffffffff aaff3f3f 3fffffff ffffffff ffdfffff efcfffdf 7fdcffff
0020: ffffffff ffffffff ffffffff fff3ffdf 1fff7fff 7fffffff 00000000 00010000
0021: ffffffff ffffffff 7818ffff 00000000 003f0010 00000100 00000000 00000000
0022: c6268044 00000a00 00000100 00000033 00000000 00000000 00000000 00000000
0023: 00010004 00000003 00000000 00000000 00000000 00000000 00000000 00000000
0025: 11111005 10101010 ffff0000 00001fff 000f1111 14041c03 03009c10 00000040
0026: 00000000 1c000000 00000005 00008c69 00000000 00000000 00000000 00000000
002c: 00000000 00000000 00000000 ffffffff 00000000 00000000 00000000 00000000
002d: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ffffffff
002e: ffffffff ffffffff 00000007 00000000 00000000 00000000 00000000 00000000
00a6: 00000000 00000000 ffffffff ffffffff ffffffff 00000000 00000000 00000000
00a7: ff800000 ffffffff ffffffff ffffffff ffffffff 00ff7fff 00000000 ff800000
00ab: 00000000 ffff0000 ffffffff 0000003f 00000000 00000000 00000000 00000000
00f0: 00007c26 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00fb: e000001e 5f7fffff 0000ffdb 00000000 00000000 00000000 00000000 00000000
00fe: 00000000 0000ffff 00000000 00000000 00000000 00000000 00000000 80000000
00ff: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 30000000
(s)
lang: aa|ab|af|ast|av|ay|az-az|ba|bm|be|bg|bi|bin|br|bs|bua|ca|ce|ch|chm|co|cs|cu|cv|cy|da|de|el|en|eo|es|et|eu|fi|fj|fo|fr|ff|fur|fy|ga|gd|gl|gn|gv|ha|haw|he|ho|hr|hu|ia|ig|id|ie|ik|io|is|it|kaa|ki|kk|kl|ku-am|kum|kv|kw|ky|la|lb|lez|ln|lt|lv|mg|mh|mi|mk|mo|mt|nb|nds|nl|nn|no|nr|nso|ny|oc|om|os|pl|pt|rm|ro|ru|sah|sco|se|sel|sh|shs|sk|sl|sm|sma|smj|smn|sms|so|sq|sr|ss|st|sv|sw|tg|tk|tl|tn|to|tr|ts|tt|tw|tyv|uk|uz|ve|vi|vo|vot|wa|wen|wo|xh|yap|yi|yo|zu|ak|an|ber-dz|crh|csb|ee|fat|fil|hsb|ht|hz|jv|kab|kj|kr|ku-tr|kwm|lg|li|mn-mn|ms|na|ng|nv|pap-an|pap-aw|qu|quz|rn|rw|sc|sg|sn|su|ty|za(s)
fontversion: 87163(i)(s)
capability: "otlayout:cyrl otlayout:grek otlayout:hebr otlayout:latn"(s)
fontformat: "TrueType"(s)
decorative: False(s)
postscriptname: "Arimo-BoldItalic"(s)
color: False(s)
symbol: False(s)
variable: False(s)
fonthashint: False(s)
order: 0(i)(s)
This is not the case for Cousine, for example:
$ fc-query /usr/share/fonts/croscore/Cousine-BoldItalic.ttf
Pattern has 27 elts (size 32)
family: "Cousine"(s)
familylang: "en"(s)
style: "Bold Italic"(s)
stylelang: "en"(s)
fullname: "Cousine Bold Italic"(s)
[snip]
Is this the cause of this:
https://bugs.chromium.org/p/chromium/issues/detail?id=1345677#c11
> fc-list |grep Arimo
/usr/share/fonts/truetype/Arimo-Regular.ttf: Arimo:style=Regular
/usr/share/fonts/truetype/Arimo-BoldItalic.ttf: Arimo,Arimo Bold:style=Bold Italic,Italic <<<< !!!!!!!!
/usr/share/fonts/truetype/Arimo-Bold.ttf: Arimo:style=Bold
/usr/share/fonts/truetype/Arimo-Italic.ttf: Arimo:style=Italic
I'm having this issue on OpenSUSE TumbleWeed.
> zypper info noto-arimo-fonts
Loading repository data...
Reading installed packages...
Information for package noto-arimo-fonts:
-----------------------------------------
Repository : openSUSE-Tumbleweed-Oss
Name : noto-arimo-fonts
Version : 20220607-1.1
Arch : noarch
Vendor : openSUSE
Installed Size : 1,2 MiB
Installed : Yes (automatically)
Status : up-to-date
Source package : google-noto-fonts-20220607-1.1.src
Upstream URL : https://github.com/googlefonts/noto-fonts
Summary : Noto Arimo Font
Description :
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Arimo font, hinted.
Font
Arimo-BoldItalic.ttf
Where the font came from, and when
https://github.com/googlefonts/noto-fonts/blob/790fcd48bca4b240a8b4d768b5e6bade42ba339e/hinted/ttf/Arimo/Arimo-BoldItalic.ttf
Font Version
1.33
Issue
Running
fc-query -f "%{fullname}: %{weight}" ~/Downloads/Arimo-BoldItalic.ttf
outputsArimo Bold Italic: 80
but should outputArimo Bold Italic: 200
This causes
fc-match "Arimo:Italic"
to output in my machineArimo-BoldItalic.ttf: "Arimo" "Bold Italic"
instead of expectedArimo-Italic.ttf: "Arimo" "Italic"
The other variants have correct weight values: