?PNG  IHDR ? f ??C1 sRGB ?? gAMA ? a pHYs ? ??od GIDATx^LeY?a?("Bh?_????q5k?*:t0A-o??]VkJM??f?8\k2ll1]q????T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/user1137782/www/china1.by/classwithtostring.php on line 86

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
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$            -   ,  _ < .=