Michael Droettboom wrote: [...] > All this raises a much larger question of whether we want to replace > font_manager.py with something like fontconfig. There don't appear to > be Python wrappers for it, but it would eliminate a number of issues > with font_manager.py : a) it would look up fonts in the same way as many > other apps in the OS (rather than from hard-coded folders), and b) seems > a little more correct in how it looks up fonts and substitutes for > missing fonts etc. For instance, if font_manager.py doesn't find an > exact match, it always returns Vera Sans, rather than returning > something with the same slant and weight as what you requested. There > would be no need to manually flush the matplotlib font cache, since > fontconfig would deal with all of that. > > [The Python wrappers are probably a non-issue on Unix-like systems, > since you can call out to the "fc-match" command for lookup.] > > This may be more effort than it's worth -- but I wanted to get opinions > from others on this list.
I find the fontconfig web site inscrutable; I don't understand how the library would be used by mpl in practice. I get the impression that it needs to be installed and configured at a system level--is this correct? How would it work on OSX and Win? Eric > > Cheers, > Mike ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel