Initial configuration commit
This commit is contained in:
commit
31c8abea59
266 changed files with 780274 additions and 0 deletions
33
typings/matplotlib/_text_helpers.pyi
Normal file
33
typings/matplotlib/_text_helpers.pyi
Normal file
|
@ -0,0 +1,33 @@
|
|||
"""
|
||||
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
|
||||
"""
|
||||
...
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue