|
From: <md...@us...> - 2008-11-12 20:09:14
|
Revision: 6400
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6400&view=rev
Author: mdboom
Date: 2008-11-12 20:09:10 +0000 (Wed, 12 Nov 2008)
Log Message:
-----------
[ 2269684 ] mathtext broken in the cairo backend
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/font_manager.py
Modified: trunk/matplotlib/lib/matplotlib/font_manager.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/font_manager.py 2008-11-12 20:00:11 UTC (rev 6399)
+++ trunk/matplotlib/lib/matplotlib/font_manager.py 2008-11-12 20:09:10 UTC (rev 6400)
@@ -397,7 +397,7 @@
self.size = size
-def ttfFontProperty(fontpath, font):
+def ttfFontProperty(font):
"""
A function for populating the :class:`FontKey` by extracting
information from the TrueType font file.
@@ -489,7 +489,7 @@
# !!!! Incomplete
size_adjust = None
- return FontEntry(fontpath, name, style, variant, weight, stretch, size)
+ return FontEntry(font.fname, name, style, variant, weight, stretch, size)
def afmFontProperty(fontpath, font):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|