You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nvim_config/typings/matplotlib/_text_helpers.pyi

34 lines
713 B

"""
This type stub file was generated by pyright.
"""
"""
Low-level text helper utilities.
"""
LayoutItem = ...
def warn_on_missing_glyph(codepoint): # -> None:
...
def layout(string, font, *, kern_mode=...): # -> Generator[Any, Any, None]:
"""
Render *string* with *font*. For each character in *string*, yield a
(glyph-index, x-position) pair. When such a pair is yielded, the font's
glyph is set to the corresponding character.
Parameters
----------
string : str
The string to be rendered.
font : FT2Font
The font.
kern_mode : int
A FreeType kerning mode.
Yields
------
glyph_index : int
x_position : float
"""
...