weight=normal isn't accepted despite being documented
The docs claim that normal
is a valid constant for weight
and its value is 80:
Constant Property Value
-------------------------------------
regular weight 80
normal weight 80
…
normal width 100
There's also FC_WEIGHT_NORMAL defined as an alias of FC_WEIGHT_REGULAR.
Since 65c7427c (released in fontconfig 2.14), normal
isn't accepted for weight at all:
$ fc-pattern :weight=normal
Fontconfig error: Unexpected constant name `normal' used for object `weight': should be `width'
Unable to parse the pattern
Before that commit, it was accepted but interpreted as the width constant, with value 100:
$ fc-pattern :weight=normal
Pattern has 1 elts (size 16)
weight: 100(f)(s)
If the documentation is correct and weight=normal
should be equivalent to weight=regular
, this needs to be fixed. Otherwise, the docs would need an update.
Edited by Tomáš Janoušek