/usr/lib64/python2.6/site-packages/matplotlib
NameSizeModeActions
backends/-0755rm
delaunay/-0755rm
mpl-data/-0755rm
numerix/-0755rm
projections/-0755rm
sphinxext/-0755rm
afm.py150890644editdlrm
afm.pyc169590644editdlrm
afm.pyo169590644editdlrm
artist.py356230644editdlrm
artist.pyc403260644editdlrm
artist.pyo403260644editdlrm
axes.py2800890644editdlrm
axes.pyc2493960644editdlrm
axes.pyo2482840644editdlrm
axis.py573540644editdlrm
axis.pyc589730644editdlrm
axis.pyo586660644editdlrm
backend_bases.py723180644editdlrm
backend_bases.pyc779670644editdlrm
backend_bases.pyo778770644editdlrm
bezier.py149170644editdlrm
bezier.pyc135260644editdlrm
bezier.pyo135260644editdlrm
blocking_input.py136900644editdlrm
blocking_input.pyc143460644editdlrm
blocking_input.pyo140280644editdlrm
cbook.py427560644editdlrm
cbook.pyc567550644editdlrm
cbook.pyo565290644editdlrm
cm.py80980644editdlrm
cm.pyc97720644editdlrm
cm.pyo97720644editdlrm
collections.py407840644editdlrm
collections.pyc440060644editdlrm
collections.pyo440060644editdlrm
colorbar.py274560644editdlrm
colorbar.pyc254970644editdlrm
colorbar.pyo254970644editdlrm
colors.py391100644editdlrm
colors.pyc400790644editdlrm
colors.pyo400790644editdlrm
contour.py428950644editdlrm
contour.pyc360990644editdlrm
contour.pyo359370644editdlrm
dates.py360070755editdlrm
dates.pyc400170644editdlrm
dates.pyo399530644editdlrm
dviread.py320330644editdlrm
dviread.pyc346820644editdlrm
dviread.pyo345390644editdlrm
figure.py412640644editdlrm
figure.pyc429390644editdlrm
figure.pyo428080644editdlrm
finance.py205820644editdlrm
finance.pyc185190644editdlrm
finance.pyo183590644editdlrm
fontconfig_pattern.py64290644editdlrm
fontconfig_pattern.pyc65190644editdlrm
fontconfig_pattern.pyo65190644editdlrm
font_manager.py426530644editdlrm
font_manager.pyc404560644editdlrm
font_manager.pyo404560644editdlrm
ft2font.so3061680775editdlrm
hatch.py65640644editdlrm
hatch.pyc91200644editdlrm
hatch.pyo91200644editdlrm
image.py315400644editdlrm
image.pyc330420644editdlrm
image.pyo329960644editdlrm
legend.py323020644editdlrm
legend.pyc235510644editdlrm
legend.pyo233780644editdlrm
lines.py546850644editdlrm
lines.pyc564310644editdlrm
lines.pyo563260644editdlrm
mathtext.py1020090644editdlrm
mathtext.pyc1030670644editdlrm
mathtext.pyo1026790644editdlrm
mlab.py942940644editdlrm
mlab.pyc1000040644editdlrm
mlab.pyo998240644editdlrm
mpl.py7850644editdlrm
mpl.pyc11760644editdlrm
mpl.pyo11760644editdlrm
nxutils.so95120775editdlrm
offsetbox.py298070644editdlrm
offsetbox.pyc338890644editdlrm
offsetbox.pyo338340644editdlrm
patches.py1284850644editdlrm
patches.pyc1301480644editdlrm
patches.pyo1300100644editdlrm
path.py217650644editdlrm
path.pyc211740644editdlrm
path.pyo209540644editdlrm
pylab.py109810644editdlrm
pylab.pyc123990644editdlrm
pylab.pyo123990644editdlrm
pyparsing.py1439240644editdlrm
pyparsing.pyc1467370644editdlrm
pyparsing.pyo1467370644editdlrm
pyplot.py824680644editdlrm
pyplot.pyc802790644editdlrm
pyplot.pyo802790644editdlrm
quiver.py375400644editdlrm
quiver.pyc337880644editdlrm
quiver.pyo337880644editdlrm
rcsetup.py234340644editdlrm
rcsetup.pyc211190644editdlrm
rcsetup.pyo209490644editdlrm
scale.py142330644editdlrm
scale.pyc194740644editdlrm
scale.pyo194740644editdlrm
spines.py126840644editdlrm
spines.pyc116360644editdlrm
spines.pyo112090644editdlrm
table.py168280644editdlrm
table.pyc169310644editdlrm
table.pyo167800644editdlrm
texmanager.py224640644editdlrm
texmanager.pyc199620644editdlrm
texmanager.pyo199620644editdlrm
text.py598220644editdlrm
text.pyc592400644editdlrm
text.pyo592400644editdlrm
ticker.py404280644editdlrm
ticker.pyc504610644editdlrm
ticker.pyo503250644editdlrm
tight_bbox.py36550644editdlrm
tight_bbox.pyc40660644editdlrm
tight_bbox.pyo40660644editdlrm
transforms.py753870644editdlrm
transforms.pyc896110644editdlrm
transforms.pyo887020644editdlrm
ttconv.so653600775editdlrm
type1font.py115370644editdlrm
type1font.pyc112560644editdlrm
type1font.pyo112560644editdlrm
units.py49760644editdlrm
units.pyc57750644editdlrm
units.pyo57750644editdlrm
widgets.py408330644editdlrm
widgets.pyc425680644editdlrm
widgets.pyo423820644editdlrm
windowing.py4540644editdlrm
windowing.pyc12830644editdlrm
windowing.pyo12830644editdlrm
_cm.py3704140644editdlrm
_cm.pyc1030420644editdlrm
_cm.pyo1030420644editdlrm
_cntr.so211840775editdlrm
_delaunay.so611200775editdlrm
_image.so2822480775editdlrm
_mathtext_data.py579900644editdlrm
_mathtext_data.pyc637870644editdlrm
_mathtext_data.pyo637870644editdlrm
_path.so2799920775editdlrm
_png.so1564720775editdlrm
_pylab_helpers.py27150644editdlrm
_pylab_helpers.pyc37080644editdlrm
_pylab_helpers.pyo37080644editdlrm
__init__.py289720644editdlrm
__init__.pyc289800644editdlrm
__init__.pyo289260644editdlrm
Edit: /usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyc (40456B)
6Jc@sndZddkZddkZddkZyeWn#ej oddklZnXddkZddkl Z ddkl Z ddkl Z l Z ddk lZddklZlZyddkZWnej oddkZnXeZeiZh d d 6d d 6d d6dd6dd6dd6dd6dd6d d6de6Zh dd6dd6dd6dd 6d!d"6d#d$6d%d&6d'd(6d)d*6Zhdd+6dd,6dd"6dd-6dd.6d!d6d!d/6d#d06d#d16d#d26d%d36d'd46d'd56d)d66Zed7d8d9d:d;d<gZd=Zd>d?gZd@dAdBdCgZdDdEdFgZ e onei!i"dGZ#e#ej oKei$i%e#dHdIZ$e i&e$ei$i%e#dJZ$ei&e$nndKZ'dLZ(edMdNZ)dOZ*edMdPZ+dQZ,dMdRZ-edMdSZ.dTZ/dUe0fdVYZ1dWZ2dXZ3dMdYZ4dZe0fd[YZ5d\Z6d]Z7d^Z8d_fd`YZ9hZ:daZ;eo ei<dbjo:ddk=Z=dcZ>e=i?ddZ@hZAdMdeZBnlei$i%e dfZCeaDdgZEy*e8eCaDetD_FeiGdheCWneEnXdiZBdS(js A module for finding, managing, and using fonts across platforms. This module provides a single :class:`FontManager` instance that can be shared across backends and platforms. The :func:`findfont` function returns the best TrueType (TTF) font file in the local or system font path that matches the specified :class:`FontProperties` instance. The :class:`FontManager` also handles Adobe Font Metrics (AFM) font files for use by the PostScript backend. The design is based on the `W3C Cascading Style Sheet, Level 1 (CSS1) font specification `_. Future versions may implement the Level 2 or 2.1 specifications. Experimental support is included for using `fontconfig` on Unix variant platforms (Linux, OS X, Solaris). To enable it, set the constant ``USE_FONTCONFIG`` in this file to ``True``. Fontconfig has the advantage that it is the standard way to look up fonts on X11 platforms, so if a font is installed, it is much more likely to be found. iN(tSet(tafm(tft2font(trcParamst get_configdir(tis_string_like(tparse_fontconfig_patterntgenerate_fontconfig_patterngI +?sxx-smallgh|?5?sx-smallg-?tsmallg?tmediumg333333?tlargeg ףp= ?sx-largegS?sxx-largetlargertsmalleridsultra-condensedisextra-condensedi,t condensedissemi-condenseditnormaliXs semi-expandeditexpandedi sextra-expandedisultra-expandedt ultralighttlighttregulartbooktromantsemiboldtdemiboldtdemitboldtheavys extra boldtblacktserifs sans-seriftcursivetfantasyt monospacetsanss@Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folderss2SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fontss/SOFTWARE\Microsoft\Windows\CurrentVersion\Fontss/usr/X11R6/lib/X11/fonts/TTF/s/usr/share/fonts/s/usr/local/share/fonts/s)/usr/lib/openoffice/share/fonts/truetype/s/Library/Fonts/s/Network/Library/Fonts/s/System/Library/Fonts/tHOMEtLibrarytFontss.fontscCshdd6dd6dd6|S(ss Return a list of file extensions extensions that are synonyms for the given file extension *fileext*. tttftotfR(R#R$(R#R$(safm((tfontext((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pytget_fontext_synonymss cCsyddk}Wntj ontXy\|i|it}z2y|i|ddSWntj onXWd|i|XWntj onXti i ti ddS(s  Return the user-specified font directory for Win32. This is looked up from the registry key:: \HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Fonts If the key is not found, $WINDIR/Fonts will be returned. iNR"itWINDIR( t_winregt ImportErrortOpenKeytHKEY_CURRENT_USERt MSFolderst QueryValueExtOSErrortCloseKeytostpathtjointenviron(R(tuser((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pytwin32FontDirectorys  R#c Csddk}|djo t}nt|}dh}}xtD]}y|i|i|}Wntj o qFnX|pEg}x7|D]/}|it i t i i |d|qW|Szxt |i|dD]} y|i|| \}} } t i i| pt i i || } nt i i| i} t i i| dd|jod|| `_ font specification. The six properties are: - family: A list of font names in decreasing order of priority. The items may include a generic font family name, either 'serif', 'sans-serif', 'cursive', 'fantasy', or 'monospace'. In that case, the actual font to be used will be looked up from the associated rcParam in :file:`matplotlibrc`. - style: Either 'normal', 'italic' or 'oblique'. - variant: Either 'normal' or 'small-caps'. - stretch: A numeric value in the range 0-1000 or one of 'ultra-condensed', 'extra-condensed', 'condensed', 'semi-condensed', 'normal', 'semi-expanded', 'expanded', 'extra-expanded' or 'ultra-expanded' - weight: A numeric value in the range 0-1000 or one of 'ultralight', 'light', 'normal', 'regular', 'book', 'medium', 'roman', 'semibold', 'demibold', 'demi', 'bold', 'heavy', 'extra bold', 'black' - size: Either an relative value of 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large' or an absolute font size, e.g. 12 The default font property for TrueType fonts (as specified in the default :file:`matplotlibrc` file) is:: sans-serif, normal, normal, normal, normal, scalable. Alternatively, a font may be specified using an absolute path to a .ttf file, by using the *fname* kwarg. The preferred usage of font sizes is to use the relative values, e.g. 'large', instead of absolute font sizes, e.g. 12. This approach allows all text sizes to be made larger or smaller based on the font manager's default font size, i.e. by using the :meth:`FontManager.set_default_size` method. This class will also accept a `fontconfig `_ pattern, if it is the only argument provided. See the documentation on `fontconfig patterns `_. This support does not require fontconfig to be installed. We are merely borrowing its pattern syntax for use here. Note that matplotlib's internal font manager and fontconfig use a different algorithm to lookup fonts, so the results of the same pattern may be different in matplotlib than in other applications that use fontconfig. c Cs4d|_d|_d|_d|_d|_d|_d|_|dj o|ii |idSt |od|djoS|djoF|djo9|djo,|djo|djo|i |dSn|i ||i ||i||i||i||i||i|dS(N(R6t_familyt_slantt_variantt_weightt_stretcht_sizet_filet__dict__tupdateRtset_fontconfig_patternt set_familyt set_stylet set_variantt set_weightt set_stretchtset_filetset_size( RtfamilyRRRzRRRit_init((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyRs4                       cCs t|S(N(R(Rtpattern((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyt_parse_fontconfig_patternscCsPg}t|iD]#}||t|d|fq~}tt|S(NR(tsortedRtgetattrthashtrepr(RRvtktl((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyt__hash__s@cCs |iS(N(tget_fontconfig_pattern(R((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyt__str__scCs;|idjo$td}t|o|gS|S|iS(sL Return a list of font names that comprise the font family. s font.familyN(RR6RR(RR((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyt get_familys   cCstitt|iS(s\ Return the name of the font that best matches the font properties. (RRRqtfindfontR(R((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pytget_namescCs |idjo tdS|iS(s^ Return the font style. Values are: 'normal', 'italic' or 'oblique'. s font.styleN(RR6R(R((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyt get_styles cCs |idjo tdS|iS(sY Return the font variant. Values are: 'normal' or 'small-caps'. s font.variantN(RR6R(R((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyt get_variants cCs |idjo tdS|iS(s Set the font weight. Options are: A numeric value in the range 0-1000 or one of 'light', 'normal', 'regular', 'book', 'medium', 'roman', 'semibold', 'demibold', 'demi', 'bold', 'heavy', 'extra bold', 'black' s font.weightN(RR6R(R((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyRs cCs |idjo tdS|iS(s Return the font stretch or width. Options are: 'ultra-condensed', 'extra-condensed', 'condensed', 'semi-condensed', 'normal', 'semi-expanded', 'expanded', 'extra-expanded', 'ultra-expanded'. s font.stretchN(RR6R(R((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyt get_stretchs cCs |idjo tdS|iS(s' Return the font size. s font.sizeN(RR6R(R((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pytget_sizes cCs[|idj o+yt|iSWq;tj oq;Xnti}|ti|iS(N(RR6RRYt fontManagertget_default_sizet font_scalingsR(Rt default_size((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pytget_size_in_points s  cCs|iS(s= Return the filename of the associated font. (R(R((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pytget_filescCs t|S(s Get a fontconfig pattern suitable for looking up the font as specified with fontconfig's ``fc-match`` utility. See the documentation on `fontconfig patterns `_. This support does not require fontconfig to be installed or support for it to be enabled. We are merely borrowing its pattern syntax for use here. (R(R((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyRs cCsA|djo d|_n$t|o |g}n||_dS(s Change the font family. May be either an alias (generic name is CSS parlance), such as: 'serif', 'sans-serif', 'cursive', 'fantasy', or 'monospace', or a real font name. N(R6RR(RR((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyR)s     cCs*|djotdn||_dS(s[ Set the font style. Values are: 'normal', 'italic' or 'oblique'. RRRs'style must be normal, italic or obliqueN(snormalsitalicsobliqueN(R6RYR(RR((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyR7s cCs*|djotdn||_dS(sN Set the font variant. Values are: 'normal' or 'small-caps'. Rs small-capss$variant must be normal or small-capsN(snormals small-capsN(R6RYR(RR((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyRAs cCs|dj ony7t|}|djp |djo tnWq{tj o$|tjotdqwq{Xn||_dS(s  Set the font weight. May be either a numeric value in the range 0-1000 or one of 'ultralight', 'light', 'normal', 'regular', 'book', 'medium', 'roman', 'semibold', 'demibold', 'demi', 'bold', 'heavy', 'extra bold', 'black' iisweight is invalidN(R6tintRYRxR(RRz((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyRIs   cCs|dj ony7t|}|djp |djo tnWq{tj o$|tjotdqwq{Xn||_dS(s Set the font stretch or width. Options are: 'ultra-condensed', 'extra-condensed', 'condensed', 'semi-condensed', 'normal', 'semi-expanded', 'expanded', 'extra-expanded' or 'ultra-expanded', or a numeric value in the range 0-1000. iisstretch is invalidN(R6RRYt stretch_dictR(RR((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyRZs   cCsn|dj oTyt|}Wqatj o1|dj o|tjotdq]qaXn||_dS(s Set the font size. Either an relative value of 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large' or an absolute font size, e.g. 12. ssize is invalidN(R6RRYRR(RR((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyRks cCs ||_dS(sw Set the filename of the fontfile to use. In this case, all other properties will be ignored. N(R(Rtfile((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyRyscCssxl|i|iD]U\}}t|tjot|d||dqt|d||qWdS(sg Set the properties by parsing a fontconfig *pattern*. See the documentation on `fontconfig patterns `_. This support does not require fontconfig to be installed or support for it to be enabled. We are merely borrowing its pattern syntax for use here. tset_iN(RRGttypetlistR(RRRFtval((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyRs  cCs td|S(sReturn a deep copy of selfR(R(R((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pytcopysN(RRRR6RRRRRRRt get_slantRRRRRRRRtset_nameRt set_slantRRRRRRR(((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyRYsD: #                cCsg}x|iD]}x}|iD]o}xf|iD]X}xO|iD]A}x8|iD]*}x!|iD]}|i|qrWq_WqLWq9Wq&WqW|S(s< flatten a ttfdict to all the filenames it contains (tvaluesRP(tdtfnamestnamedtstyledtvariantdtweightdtstretchdRi((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pytttfdict_to_fnamess      %cCs5t|d}zti||Wd|iXdS(su Equivalent to pickle.dump(data, open(filename, 'w')) but closes the file to prevent filehandle leakage. RN(RtpickletdumpR(tdatatfilenameR((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyt pickle_dumpscCs4t|d}zti|}Wd|iX|S(so Equivalent to pickle.load(open(filename, 'r')) but closes the file to prevent filehandle leakage. RN(RRtloadR(RRR((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyt pickle_loads  t FontManagercBseZdZdddZdZdZdZdZdZ dZ d Z d Z d Z d Zd ZddZRS(s} On import, the :class:`FontManager` singleton instance creates a list of TrueType fonts based on the font properties: name, style, variant, weight, stretch, and size. The :meth:`findfont` method does a nearest neighbor search to find the font that most closely matches the specification. If no good enough match is found, a default font is returned. Rc Cs2||_||_tiitdddtiitdddg}xddgD]}|tijo~ti|}|iddjo|i|i dq|id djo|i|i d q|i |qWqWWt i d t |t|t|_x_|iD]D}t i d |d |iid djo||_Pq&q&W|id|_t|i|_tdoGtiitddd}t|dd}t|dd|_n;t|ddtdd|_t|idd|_h|_h|_dS(NtdatapathtfontsR#RtTTFPATHtAFMPATHt;iR`sfont search path %sstrying fontname %sRsvera.ttfspdf.use14corefontst pdfcorefontsR%(t_FontManager__default_weightRR0R1R2RR3RR9RcRPRRRqRwtttffilesR@t defaultFontRtttflisttafmlisttafmfilestttf_lookup_cachetafm_lookup_cache( RRRztpathstpathnametttfpathRitafmpathR((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyRs@         cCs|iS(s1 Return the default font weight. (R(R((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pytget_default_weightscCs |idjo tdS|iS(s/ Return the default font size. s font.sizeN(RR6R(R((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyRs cCs ||_dS(sN Set the default font weight. The initial value is 'normal'. N(R(RRz((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pytset_default_weightscCs ||_dS(sp Set the default font size in points. The initial value is set by ``font.size`` in rc. N(R(RR((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pytset_default_size scCs tdS(sd Update the font dictionary with new font files. Currently not implemented. N(tNotImplementedError(Rt filenames((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyt update_fontsscCsxt|D]\}}|itjob|djo|djntd|}||jo(|i|}dt|t|Sq |i|ijodSq WdS(s Returns a match score between the list of font families in *families* and the font family name *family2*. An exact match anywhere in the list returns 0.0. A match by generic font name will return 0.1. No match will return 1.0. Rs sans-serifsfont.g?gg?(t enumerateR@tfont_family_aliasesRtindexRRo(Rtfamiliestfamily2titfamily1toptionstidx((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyt score_familys    cCs5||jodS|djo|djodSdS(s Returns a match score between *style1* and *style2*. An exact match returns 0.0. A match between 'italic' and 'oblique' returns 0.1. No match returns 1.0. gRRg?g?(sitalicsoblique(sitalicsoblique((Rtstyle1tstyle2((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyt score_style3s   cCs||jodSdSdS(s~ Returns a match score between *variant1* and *variant2*. An exact match returns 0.0, otherwise 1.0. gg?N((Rtvariant1tvariant2((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyt score_variantDs c Csyt|}Wn%tj oti|d}nXyt|}Wn%tj oti|d}nXt||dS(s Returns a match score between *stretch1* and *stretch2*. The result is the absolute value of the difference between the CSS numeric values of *stretch1* and *stretch2*, normalized between 0.0 and 1.0. ig@@(RRYRRtabs(Rtstretch1tstretch2t stretchval1t stretchval2((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyt score_stretchOsc Csyt|}Wn%tj oti|d}nXyt|}Wn%tj oti|d}nXt||dS(s Returns a match score between *weight1* and *weight2*. The result is the absolute value of the difference between the CSS numeric values of *weight1* and *weight2*, normalized between 0.0 and 1.0. ig@@(RRYRxRR$(Rtweight1tweight2t weightval1t weightval2((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyt score_weightasc Cs|djodSyt|}Wn&tj o|it|}nXyt|}Wntj odSXt||dS(s Returns a match score between *size1* and *size2*. If *size2* (the size specified in the font file) is 'scalable', this function always returns 0.0, since any font size can be generated. Otherwise, the result is the absolute distance between *size1* and *size2*, normalized so that the usual range of font sizes (6pt - 72pt) will lie between 0.0 and 1.0. Rgg?gR@(RRYRRR$(Rtsize1tsize2tsizeval1tsizeval2((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyt score_sizess R#c Cs.t}|d jo t}nt|ot|}n|i}|d j otid|d|S|djo|i}|i}n|i }|i }|i t |}|o|Sd}d } x|D]} |i |i| id|i|i| i|i|i| i|i|i| i|i|i| i|i|i| i} | |jo| }| } n| djoPqqW| d jp |djo'tid||if|i} n-tid|| i| i |f| i } | |t |<| S( s Search the font list for the font that most closely matches the :class:`FontProperties` *prop*. :meth:`findfont` performs a nearest neighbor search. Each font is given a similarity score to the target font properties. The first font with the highest score is returned. If no matches below a certain threshold are found, the default font (usually Vera Sans) is returned. The result is cached, so subsequent lookups don't have to perform the O(n) nearest neighbor search. See the `W3C Cascading Style Sheet, Level 1 `_ documentation for a description of the font finding algorithm. sfindfont returning %sRRg?O8Mg$@is*findfont: Could not match %s. Returning %ss1findfont: Matching %s to %s (%s) with score of %fN(!tFalseR6RRRRRR RRRRRRRR~R RRR#RRR.RRzR)RRR3RRRRi( RRR%RRit font_cacheRtcachedt best_scoret best_fontRtscoretresult((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyRsJ                  N(RRRR6RRRRRRRR R#R)R.R3R(((s=/usr/lib64/python2.6/site-packages/matplotlib/font_manager.pyRs4         cCstii|didjocti|}|djoBt|d}|id}|i |dj}|t|s$            -   ,  _ < .=