https://bugzilla.redhat.com/show_bug.cgi?id=1823637



--- Comment #27 from Akira TAGOH <[email protected]> ---
(In reply to Peng Wu from comment #24)
> Maybe nautilus uses similar code like hexchat, but fontconfig
> returns different fonts format randomly.

To clarify, it's not random. the default weight is Regular and bitmap version
of Terminus supports that weight despite not supporting Regular weight in OTB.
see:

$ FC_DEBUG=3 fc-match Terminus
...
Font 3958 Pattern has 27 elts (size 27)
        family: "Terminus"(w)
        familylang: "en"(w)
        style: "Regular"(w)
        stylelang: "en"(w)
        fullname: "Terminus Regular"(w)
        fullnamelang: "en"(w)
        slant: 0(i)(w)
        weight: 100(f)(w)
        width: 100(f)(w)
        pixelsize: 12(f)(w) 18(f)(w) 22(f)(w) 28(f)(w) 16(f)(w) 14(f)(w)
20(f)(w) 24(f)(w) 32(f)(w)
        spacing: 100(i)(w)
        foundry: "UNKN"(w)
        antialias: False(w)
        file: "/usr/share/fonts/terminus-fonts/Terminus.otb"(w)
        index: 0(i)(w)
        outline: False(w)
        scalable: False(w)
        charset: 
        0000: 00000000 ffffffff ffffffff 7fffffff 00000000 ffffffff ffffffff
ffffffff
        0001: ffffffff ffffffff ffffffff ffffffff 6005c040 00e00000 001fe000
f031fffc
        0002: 0f000000 008c0000 0b100000 00040000 00040000 38000000 3b0000c0
00000000
        0003: 00001dff 00000200 00000000 00000000 ffffd7f0 fffffffb 00227fff
007f0000
        0004: ffffffff ffffffff ffffffff 00000c0c 3fff0000 0fcfcc3f ffff8007
033ffffc
        0005: 00000000 00000000 00000000 00000000 00000000 00000000 ffff0000
000007ff
        001e: 00003000 00f00000 000000ff 00003000 00000000 33000000 00003c00
03000030
        0020: ffffffff 560d0047 00000000 fff30000 05ff7fff 00005480 00000000
00000000
        0021: 2460c004 00200054 00000000 00000000 003f0000 08200150 003f1800
00000000
        0022: c67c3ff9 000007a0 00000100 00000c33 000000cc 00000020 0000000c
00000000
        0023: 02010f05 00000003 00000000 00000000 f8000000 3c00fbff 00010000
00000000
        0024: 00003e00 00000010 00000000 00000000 00000000 00000000 00000000
00000000
        0025: ffffff0f ffffffff ffff0fff ffffffff ffcfffff 14445001 03008c51
00000000
        0026: 00000000 1c000000 00000005 00000c69 00000000 00000000 00000000
00000000
        0027: 01980000 00000000 00000000 00000000 00000000 00000000 00000000
00000f00
        0028: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
ffffffff
        002e: 00000000 00001000 00000000 00000000 00000000 00000000 00000000
00000000
        00e0: 00000000 00000000 00000000 00000000 00000000 000f0007 00000000
00000000
        00f6: 00000000 00000000 00000000 00000000 00000000 40000000 00000000
00000000
        00ff: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
20000000
(w)
        lang:
aa|af|av|ay|az-az|ba|bm|be|bg|bi|bin|br|bs|bua|ca|ce|ch|chm|co|cs|cv|da|de|el|en|eo|es|et|eu|fi|fj|fo|fr|
fur|fy|gd|gl|gn|gv|haw|he|ho|hr|hu|ia|ig|id|ie|ik|io|is|it|kaa|ki|kk|kl|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|se|sel|sh|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|vo|vot|wa|wen|wo|xh|yap|yi|zu|ak|an|crh|csb|fat|fil|hsb|ht|jv|kj|ku-tr|kwm|lg|li|mn-mn|m
s|na|ng|nv|pap-an|pap-aw|rn|rw|sc|sg|sn|su|ty|za(w)
        fontversion: 65536(i)(w)
        fontformat: "TrueType"(w)
        decorative: False(w)
        postscriptname: "Terminus"(w)
        color: False(w)
        symbol: False(w)
        variable: False(w)
        fonthashint: False(w)
...
 weight: 20000  80(i)(s),  100(f)(w)
...
Score 0 0 0 0 0 0 0 0 0 2000 1001 0 0 0 0 500 0 0 20000 0 0 0 0 0 0 2.14742e+12
...
Font 3960 Pattern has 28 elts (size 28)
        family: "Terminus"(w)
        familylang: "en"(w)
        style: "Regular"(w)
        stylelang: "en"(w)
        fullname: "Terminus Regular"(w)
        fullnamelang: "en"(w)
        slant: 0(i)(w)
        weight: 80(f)(w)
        width: 100(f)(w)
        pixelsize: 12(f)(w)
        spacing: 110(i)(w)
        foundry: "xos4"(w)
        antialias: False(w)
        file: "/usr/share/fonts/terminus-fonts-legacy-x11/ter-112n.pcf.gz"(w)
        index: 0(i)(w)
        outline: False(w)
        scalable: False(w)
        charset: 
        0000: ffffffff ffffffff ffffffff ffffffff dffe5ffd ffffffff ffffffff
ffffffff
(w)
        lang:
aa|ay|bi|br|ch|da|de|en|es|eu|fj|fo|fur|fy|gd|gl|gv|ho|ia|id|ie|io|is|it|lb|mg|nb|nds|nl|nn|no|nr|oc|om|p
t|rm|sma|smj|so|sq|ss|st|sv|sw|tl|ts|uz|vo|wa|xh|yap|zu|an|fil|ht|jv|kj|kwm|li|ms|ng|pap-an|pap-aw|rn|rw|sc|sg|sn|su|za
(w)
        fontversion: 0(i)(w)
        fontformat: "PCF"(w)
        decorative: False(w)
        postscriptname: "Terminus"(w)
        color: False(w)
        symbol: False(w)
        variable: False(w)
        fonthashint: False(w)
...
 weight: 0  80(i)(s),  80(f)(w)
...
Score 0 0 0 0 0 0 0 0 0 2000 1001 0 0 0 0 500 0 0 0 0 0 0 0 0 0 2.14748e+12


Again, look at this:
Score 0 0 0 0 0 0 0 0 0 2000 1001 0 0 0 0 500 0 0 20000 0 0 0 0 0 0 2.14742e+12
Score 0 0 0 0 0 0 0 0 0 2000 1001 0 0 0 0 500 0 0 0 0 0 0 0 0 0 2.14748e+12

Only difference in score is weight. if requirements is "Terminus" only, this
behavior *is* correct.

The problem here would be either or all of:

* [font] No Regular weight for OTB
* [font] Lying style as Regular despite being Medium weight (Bug#1839689)
* [apps] No fontformat=truetype,cff in query despite not supporting legacy
bitmap format

In fact, these queries works fine:
$ fc-match Terminus:weight=medium
Terminus.otb: "Terminus" "Regular"
$ fc-match Terminus:fontformat=truetype,cff
Terminus.otb: "Terminus" "Regular"


-- 
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]

Reply via email to