Re: [matplotlib-devel] findfont not matching close weights

2008-10-22 Thread Michael Droettboom
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

Re: [matplotlib-devel] findfont not matching close weights

2008-10-22 Thread Stan West
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

Re: [matplotlib-devel] findfont not matching close weights

2008-10-22 Thread Michael Droettboom
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,

[matplotlib-devel] findfont not matching close weights

2008-10-22 Thread Stan West
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')