Return a list of file extensions that are synonyms for the given file extension *fileext*.
(fontext)
| 176 | |
| 177 | |
| 178 | def 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 | |
| 191 | def list_fonts(directory, extensions): |
no outgoing calls
no test coverage detected
searching dependent graphs…