Logo Search packages:      
Sourcecode: matplotlib version File versions  Download package

def matplotlib::backends::backend_agg::RendererAgg::_get_agg_font (   self,
  prop 
) [private]

Get the font for text instance t, cacheing for efficiency

Definition at line 301 of file backend_agg.py.

00301                                  :
        """
        Get the font for text instance t, cacheing for efficiency
        """
        if __debug__: verbose.report('RendererAgg._get_agg_font',
                                     'debug-annoying')

        key = hash(prop)
        font = _fontd.get(key)

        if font is None:
            fname = fontManager.findfont(prop)
            font = FT2Font(str(fname))
            _fontd[key] = font

        font.clear()
        size = prop.get_size_in_points()
        font.set_size(size, self.dpi.get())

        return font


    def points_to_pixels(self, points):


Generated by  Doxygen 1.6.0   Back to index