Initial configuration commit
This commit is contained in:
commit
31c8abea59
266 changed files with 780274 additions and 0 deletions
31
typings/matplotlib/_fontconfig_pattern.pyi
Normal file
31
typings/matplotlib/_fontconfig_pattern.pyi
Normal file
|
@ -0,0 +1,31 @@
|
|||
"""
|
||||
This type stub file was generated by pyright.
|
||||
"""
|
||||
|
||||
from functools import lru_cache
|
||||
|
||||
"""
|
||||
A module for parsing and generating `fontconfig patterns`_.
|
||||
|
||||
.. _fontconfig patterns:
|
||||
https://www.freedesktop.org/software/fontconfig/fontconfig-user.html
|
||||
"""
|
||||
_family_punc = ...
|
||||
_family_unescape = ...
|
||||
_family_escape = ...
|
||||
_value_punc = ...
|
||||
_value_unescape = ...
|
||||
_value_escape = ...
|
||||
_CONSTANTS = ...
|
||||
@lru_cache
|
||||
def parse_fontconfig_pattern(pattern): # -> dict[Unknown, Unknown]:
|
||||
"""
|
||||
Parse a fontconfig *pattern* into a dict that can initialize a
|
||||
`.font_manager.FontProperties` object.
|
||||
"""
|
||||
...
|
||||
|
||||
def generate_fontconfig_pattern(d): # -> str:
|
||||
"""Convert a `.FontProperties` to a fontconfig pattern string."""
|
||||
...
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue