fc-listのパターン構文がfc-matchのような他のフォント設定コマンドと異なるのはなぜですか?

fc-listのパターン構文がfc-matchのような他のフォント設定コマンドと異なるのはなぜですか?

ただ、fc-listのパターン構文がfc-matchやfc-patternなどの他のフォント設定コマンドと異なることがわかりました。 fc-listの場合、フォントを持たないすべてのフォントをリストするには、「:」を追加する必要がありました。

hongy19@WSL ~$ fc-list sans
hongy19@WSL ~$ fc-list :sans|head -2
/home/hongy19/.local/share/fonts/opentype/public/almfixed/almfixed.otf: ALM Fixed:style=Regular
/home/hongy19/.local/share/fonts/opentype/public/garamond-math/Garamond-Math.otf: Garamond\-Math:style=Regular

しかし、fc-matchとfc-patternでは ":"は必要ありません。

hongy19@WSL ~$ fc-pattern :sans
Pattern has 0 elts (size 0)
        (null):

hongy19@WSL ~$ fc-pattern sans
Pattern has 1 elts (size 16)
        family: "sans"(s)

ベストアンサー1

おすすめ記事