ANN matplotlib-0.42

I have tex installed so I hope I can use quite a lot more

    > fonts now. Is the path to the .afm files all that is needed?
    > Do I have to set anything else, for example where to find the
    > pfa/pfb files? I found that matplotlib spits out warnings
    > 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.

    > ** (log_demo.py:1264): WARNING **: Couldn't load font "Times
    > 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

John Hunter wrote:

"LUK" == LUK ShunTim <shuntim.luk@...34...> writes:

    > I have tex installed so I hope I can use quite a lot more
    > fonts now. Is the path to the .afm files all that is needed?
    > Do I have to set anything else, for example where to find the
    > pfa/pfb files? I found that matplotlib spits out warnings
    > 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.

    > ** (log_demo.py:1264): WARNING **: Couldn't load font "Times
    > 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