From: LUK S. <shu...@po...> - 2004-01-30 14:54:15
|
John Hunter wrote: >>>>>>"LUK" == LUK ShunTim <shu...@po...> writes: > > > LUK> I have tex installed so I hope I can use quite a lot more > LUK> fonts now. Is the path to the .afm files all that is needed? > LUK> Do I have to set anything else, for example where to find the > LUK> pfa/pfb files? I found that matplotlib spits out warnings > LUK> like > > All matplotlib needs is the *.afm files. It uses this to compute text > lengths, etc, for layout. You'll just need to provide the right font > names to the text commands, perhaps using a font dictionary as in > examples/text_themes.py. Your postscript output device will still > need to know about the fonts of course. Note that I use a custom font > matching scheme in backend_ps and I certainly don't claim that it is > ideal. So if you encounter strange behavior, let me know. > > LUK> ** (log_demo.py:1264): WARNING **: Couldn't load font "Times > LUK> 9.599609375" falling back to "Sans 9.599609375" > > This doesn't look like a backend_ps error. Have you upgraded to > matplotlib-0.42.2? I've reworked text handling in the backends so > it's hard for me to compare what I've got now without knowing what > version of matplotlib you're using. > > JDH > CVS. ST |