|
From: Darren D. <dd...@co...> - 2006-08-20 14:57:18
|
Hi Edin, On Sunday 20 August 2006 10:21 am, Edin Salkovi=C4=87 wrote: > The SoC deadline (for code) is tommorow (Aug 21st.), so I decided to comm= it > what I have done till now to the repository. > > JDH is going on a vacation and will not be able to review it for at > least a week, > but I had to commit it before 21st. Aug - that's the SoC rules. Hopefully, > I'll be adding new stuff the next week (and after), but that doesn't > count as part of SoC anymore... > > Since this is my first commit, can anyone please test it. I tested it > only on my windows box. > > I changed > __init__.py, > mathtext.py > CHANGELOG > > I added > mathtext2.py > mathtext2_demo.py > > Anyone who wants to test the new mathtext2 has to add the following line(= s) > to the matplotlibrc (mathtext2 is disabled by default): > > mathtext2: True # Needed to enable the new mathtext > > # Font lines, feel free to change or uncomment (BaKoMa is used by default) > mathtext.rm : FreeSerif.ttf > mathtext.it : FreeSerifItalic.ttf # Text italic > mathtext.tt : FreeMono.ttf # Typewriter (monospaced) > mathtext.mit : FreeSerifItalic.ttf # Math italic > mathtext.cal : FreeSansOblique.ttf # Caligraphic > mathtext.nonascii: FreeSerif.ttf # Used for \sum, \infty etc. > > The FreeFont fonts (or any other for that matter) have to be downloaded a= nd > put into the mpl-data dir. The default settingsuse the current bakoma > fonts, and they play pretty well with FreeSerif.ttf as the nonascii > (unicode) font. > > so I recommend you just put the line > mathtext.nonascii: FreeSerif.ttf > > and comment out the rest (experiment a little with fonts). > > Tonight I plan to add support for fractions. Beware that the only > supported backend for now is Agg. > > mathtext2_demo.py is attached I just updated my svn repository, added the lines you indicated to my rc fi= le,=20 but when I run the example, mpl can't find the freefonts that I already hav= e=20 installed on my system. The freefonts I have installed are not ttf, but pfb= =2E=20 Where should we download from? ftp://ftp.cs.umn.edu/pub/gimp/pub/gimp/fonts= ,=20 for example? I dont think those are what I am looking for. Do they really=20 need to go in mpl-dir? It would be more appropriate if they could be=20 installed somewhere like /usr/share/fonts. |