When using type 1 fonts the weights have to be invented by fontconfig from the
style names. However, Ultra isn't handled. The attached patch adds Ultra an
alternative for FC_WEIGHT_ULTRABOLD.
Created attachment 1875 [details] [review]
Handle the Ultra style name
The code currently looks in the style name for substrings matching the specified
names; unfortunately 'ultra' isn't unique in this regard -- a Type1 font with
'ultracondensed' in the style name will accidentally match 'ultra' as well.
Perhaps some word-boundary tests could be added which would distinguish these
Please test branch 'ultra-bold' and see if this works for you. I don't have any
fonts with this characteristic. Alternatively, point me at a font which does...
sorry, that's the ultra-weight branch
$ git-clone git://anongit.freedesktop.org/git/fontconfig
$ cd fontconfig
$ git-checkout ultra-weight
$ sh ./autogen.sh
Keith, didn't you fix this?
yeah, fixed but never added to master. Done now.