Skip to content

\nullfont

yex.keyword.Nullfont(doc=None) #

Bases: yex.control.FontSetter

Selects the null font, which contains no characters.

The constructor's "doc" parameter exists so that the class object Nullfont can be placed in the controls table at the start of a run. Other Fontsetter instances don't need this. They're placed during the run, so they're placed as instances rather than as their class object.

Source code in yex/keyword/font.py
22
23
24
25
26
27
28
def __init__(self,
             doc:'yex.document.Document' = None,
             ):
    super().__init__(
            font = yex.font.Nullfont(),
            name = r'nullfont',
            )