matplotlib 3.5.1

NotesParametersBackRef

Notes

For historical reasons, TeX knows many Type-1 fonts by different names than the outside world. (For one thing, the names have to fit in eight characters.) Also, TeX's native fonts are not Type-1 but Metafont, which is nontrivial to convert to PostScript except as a bitmap. While high-quality conversions to Type-1 format exist and are shipped with modern TeX distributions, we need to know which Type-1 fonts are the counterparts of which native fonts. For these reasons a mapping is needed from internal font names to font file names.

A texmf tree typically includes mapping files called e.g. psfonts.map , pdftex.map , or dvipdfm.map . The file psfonts.map is used by dvips , pdftex.map by pdfTeX , and dvipdfm.map by dvipdfm . psfonts.map might avoid embedding the 35 PostScript fonts (i.e., have no filename for them, as in the Times-Bold example above), while the pdf-related files perhaps only avoid the "Base 14" pdf fonts. But the user may have configured these files differently.

Parameters

filename : str or path-like

A psfonts.map formatted file, mapping TeX fonts to PS fonts.

Examples

This example is valid syntax, but raise an exception at execution
>>> map = PsfontsMap(find_tex_file('pdftex.map'))
... entry = map[b'ptmbo8r']
... entry.texname b'ptmbo8r'
This example is valid syntax, but raise an exception at execution
>>> entry.psname
b'Times-Bold'
This example is valid syntax, but raise an exception at execution
>>> entry.encoding
'/usr/local/texlive/2008/texmf-dist/fonts/enc/dvips/base/8r.enc'
This example is valid syntax, but raise an exception at execution
>>> entry.effects
{'slant': 0.16700000000000001}
This example is valid syntax, but raise an exception at execution
>>> entry.filename
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

matplotlib.dviread.PsfontsMap matplotlib.dviread.DviFont

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /matplotlib/dviread.py#773
type: <class 'type'>
Commit: