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.
32 lines
733 B
32 lines
733 B
"""
|
|
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."""
|
|
...
|
|
|