matplotlib 3.5.1

AttributesParameters

Attributes

texname : bytes
size : float

Size of the font in Adobe points, converted from the slightly smaller TeX points.

widths : list

Widths of glyphs in glyph-space units, typically 1/1000ths of the point size.

This class holds a font's texname and size, supports comparison, and knows the widths of glyphs in the same units as the AFM file. There are also internal attributes (for use by dviread.py) that are not used for comparison.

The size is in Adobe points (converted from TeX points).

Parameters

scale : float

Factor by which the font is scaled from its natural size.

tfm : Tfm

TeX font metrics for this font

texname : bytes

Name of the font as used internally by TeX and friends, as an ASCII bytestring. This is usually very different from any external font names; PsfontsMap can be used to find the external name of the font.

vf : Vf

A TeX "virtual font" file, or None if this font is not virtual.

Encapsulation of a font that a DVI file can refer to.

Examples

See :

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#515
type: <class 'type'>
Commit: