Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong weight value for Arimo-BoldItalic.ttf #13

Open
vemoo opened this issue May 11, 2022 · 2 comments
Open

Wrong weight value for Arimo-BoldItalic.ttf #13

vemoo opened this issue May 11, 2022 · 2 comments

Comments

@vemoo
Copy link

vemoo commented May 11, 2022

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 outputs Arimo Bold Italic: 80 but should output Arimo Bold Italic: 200

This causes fc-match "Arimo:Italic" to output in my machine Arimo-BoldItalic.ttf: "Arimo" "Bold Italic" instead of expected Arimo-Italic.ttf: "Arimo" "Italic"

The other variants have correct weight values:

> fc-query -f "%{fullname}: %{weight}" ~/Downloads/Arimo-Regular.ttf 
Arimo Regular: 80
> fc-query -f "%{fullname}: %{weight}" ~/Downloads/Arimo-Italic.ttf 
Arimo Italic: 80
> fc-query -f "%{fullname}: %{weight}" ~/Downloads/Arimo-Bold.ttf 
Arimo Bold: 200
@MathSquared
Copy link

MathSquared commented Jun 2, 2022

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]

@simoncozens simoncozens transferred this issue from notofonts/noto-fonts Jun 21, 2022
@php4fan
Copy link

php4fan commented Aug 8, 2022

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.

bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this issue Aug 24, 2022
https://build.opensuse.org/request/show/998725
by user Pi-Cla + dimstar_suse
fix: bsc#1202279 and gh#notofonts/Arimo#13
- fix-arimo.patch
fix: summary and descriptions not mentioning font being Serif
add: README.FAQ to answer some questions about Noto Fonts packaging
bmwiedemann pushed a commit to bmwiedemann/Arimo that referenced this issue Aug 2, 2023
bmwiedemann added a commit to bmwiedemann/Arimo that referenced this issue Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants