MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / get_fontext_synonyms

Function get_fontext_synonyms

lib/matplotlib/font_manager.py:178–188  ·  view source on GitHub ↗

Return a list of file extensions that are synonyms for the given file extension *fileext*.

(fontext)

Source from the content-addressed store, hash-verified

176
177
178def get_fontext_synonyms(fontext):
179 """
180 Return a list of file extensions that are synonyms for
181 the given file extension *fileext*.
182 """
183 return {
184 'afm': ['afm'],
185 'otf': ['otf', 'ttc', 'ttf'],
186 'ttc': ['otf', 'ttc', 'ttf'],
187 'ttf': ['otf', 'ttc', 'ttf'],
188 }[fontext]
189
190
191def list_fonts(directory, extensions):

Callers 1

findSystemFontsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…