ow the pitfalls of fonts really well. It is
ported to Windows, but it is generally not there, so we would have to
require or ship it.
Cheers,
Mike
> Stan
>
>
>> -Original Message-
>> From: Michael Droettboom [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, Octob
TECTED]
> Sent: Wednesday, October 22, 2008 10:11
> To: Stan West
> Cc: matplotlib-devel@lists.sourceforge.net
> Subject: Re: [matplotlib-devel] findfont not matching close weights
>
> This is a longstanding known issue -- the font finding
> algorithm is way too precise, and
This is a longstanding known issue -- the font finding algorithm is way
too precise, and should instead do a nearest-neighbor search similar to
fontconfig. It's a non-trivial bit of code that no one has yet found
time for.
If you're running matplotlib 0.98.x and are on a non-Windows platform,
Greetings. It seems that a "not" operator got dropped in rev. 6143 to
font_manager.py. I've attached a patch.
The missing "not" tripped up findfont when trying to match font weights: the
code
fm = matplotlib.font_manager.FontManager()
fm.findfont('New Century Schoolbook', fontext='afm')