MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / __init__

Method __init__

site-packages/matplotlib/mathtext.py:1078–1094  ·  view source on GitHub ↗
(self, default_font_prop)

Source from the content-addressed store, hash-verified

1076 }
1077
1078 def __init__(self, default_font_prop):
1079 Fonts.__init__(self, default_font_prop, MathtextBackendPs())
1080 self.glyphd = {}
1081 self.fonts = {}
1082
1083 filename = findfont(default_font_prop, fontext='afm',
1084 directory=self.basepath)
1085 if filename is None:
1086 filename = findfont('Helvetica', fontext='afm',
1087 directory=self.basepath)
1088 with open(filename, 'rb') as fd:
1089 default_font = AFM(fd)
1090 default_font.fname = filename
1091
1092 self.fonts['default'] = default_font
1093 self.fonts['regular'] = default_font
1094 self.pswriter = StringIO()
1095
1096 def _get_font(self, font):
1097 if font in self.fontmap:

Callers

nothing calls this directly

Calls 6

findfontFunction · 0.90
AFMClass · 0.90
MathtextBackendPsClass · 0.85
openFunction · 0.85
StringIOClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected