Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
matplotlib/lib/matplotlib/font_manager.pyi at v3.10.5 · matplotlib/matplotlib · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
See all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
matplotlib
matplotlib
Repository navigation
Code
Issues
1.1k
(1.1k)
Pull requests
428
(428)
Actions
Projects
Wiki
Security and quality
Insights
More
items
Files
Expand file tree
v3.10.5
Breadcrumbs
matplotlib
/
lib
/
matplotlib
/
font_manager.pyi
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
136 lines (124 loc) · 4.93 KB
v3.10.5
Breadcrumbs
matplotlib
/
lib
/
matplotlib
/
font_manager.pyi
Copy path
Top
File metadata and controls
Code
Blame
136 lines (124 loc) · 4.93 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
from
dataclasses
import
dataclass
import
os
from
matplotlib
.
_afm
import
AFM
from
matplotlib
import
ft2font
from
pathlib
import
Path
from
collections
.
abc
import
Iterable
from
typing
import
Any
,
Literal
font_scalings
:
dict
[
str
|
None
,
float
]
stretch_dict
:
dict
[
str
,
int
]
weight_dict
:
dict
[
str
,
int
]
font_family_aliases
:
set
[
str
]
MSFolders
:
str
MSFontDirectories
:
list
[
str
]
MSUserFontDirectories
:
list
[
str
]
X11FontDirectories
:
list
[
str
]
OSXFontDirectories
:
list
[
str
]
def
get_fontext_synonyms
(
fontext
:
str
)
->
list
[
str
]: ...
def
list_fonts
(
directory
:
str
,
extensions
:
Iterable
[
str
])
->
list
[
str
]: ...
def
win32FontDirectory
()
->
str
: ...
def
_get_fontconfig_fonts
()
->
list
[
Path
]: ...
def
findSystemFonts
(
fontpaths
:
Iterable
[
str
|
os
.
PathLike
|
Path
]
|
None
=
...,
fontext
:
str
=
...
)
->
list
[
str
]: ...
@
dataclass
class
FontEntry
:
fname
:
str
=
...
name
:
str
=
...
style
:
str
=
...
variant
:
str
=
...
weight
:
str
|
int
=
...
stretch
:
str
=
...
size
:
str
=
...
def
_repr_html_
(
self
)
->
str
: ...
def
_repr_png_
(
self
)
->
bytes
: ...
def
ttfFontProperty
(
font
:
ft2font
.
FT2Font
)
->
FontEntry
: ...
def
afmFontProperty
(
fontpath
:
str
,
font
:
AFM
)
->
FontEntry
: ...
class
FontProperties
:
def
__init__
(
self
,
family
:
str
|
Iterable
[
str
]
|
None
=
...,
style
:
Literal
[
"normal"
,
"italic"
,
"oblique"
]
|
None
=
...,
variant
:
Literal
[
"normal"
,
"small-caps"
]
|
None
=
...,
weight
:
int
|
str
|
None
=
...,
stretch
:
int
|
str
|
None
=
...,
size
:
float
|
str
|
None
=
...,
fname
:
str
|
os
.
PathLike
|
Path
|
None
=
...,
math_fontfamily
:
str
|
None
=
...,
)
->
None
: ...
def
__hash__
(
self
)
->
int
: ...
def
__eq__
(
self
,
other
:
object
)
->
bool
: ...
def
get_family
(
self
)
->
list
[
str
]: ...
def
get_name
(
self
)
->
str
: ...
def
get_style
(
self
)
->
Literal
[
"normal"
,
"italic"
,
"oblique"
]: ...
def
get_variant
(
self
)
->
Literal
[
"normal"
,
"small-caps"
]: ...
def
get_weight
(
self
)
->
int
|
str
: ...
def
get_stretch
(
self
)
->
int
|
str
: ...
def
get_size
(
self
)
->
float
: ...
def
get_file
(
self
)
->
str
|
bytes
|
None
: ...
def
get_fontconfig_pattern
(
self
)
->
dict
[
str
,
list
[
Any
]]: ...
def
set_family
(
self
,
family
:
str
|
Iterable
[
str
]
|
None
)
->
None
: ...
def
set_style
(
self
,
style
:
Literal
[
"normal"
,
"italic"
,
"oblique"
]
|
None
)
->
None
: ...
def
set_variant
(
self
,
variant
:
Literal
[
"normal"
,
"small-caps"
]
|
None
)
->
None
: ...
def
set_weight
(
self
,
weight
:
int
|
str
|
None
)
->
None
: ...
def
set_stretch
(
self
,
stretch
:
int
|
str
|
None
)
->
None
: ...
def
set_size
(
self
,
size
:
float
|
str
|
None
)
->
None
: ...
def
set_file
(
self
,
file
:
str
|
os
.
PathLike
|
Path
|
None
)
->
None
: ...
def
set_fontconfig_pattern
(
self
,
pattern
:
str
)
->
None
: ...
def
get_math_fontfamily
(
self
)
->
str
: ...
def
set_math_fontfamily
(
self
,
fontfamily
:
str
|
None
)
->
None
: ...
def
copy
(
self
)
->
FontProperties
: ...
# Aliases
set_name
=
set_family
get_slant
=
get_style
set_slant
=
set_style
get_size_in_points
=
get_size
def
json_dump
(
data
:
FontManager
,
filename
:
str
|
Path
|
os
.
PathLike
)
->
None
: ...
def
json_load
(
filename
:
str
|
Path
|
os
.
PathLike
)
->
FontManager
: ...
class
FontManager
:
__version__
:
int
default_size
:
float
|
None
defaultFamily
:
dict
[
str
,
str
]
afmlist
:
list
[
FontEntry
]
ttflist
:
list
[
FontEntry
]
def
__init__
(
self
,
size
:
float
|
None
=
...,
weight
:
str
=
...)
->
None
: ...
def
addfont
(
self
,
path
:
str
|
Path
|
os
.
PathLike
)
->
None
: ...
@
property
def
defaultFont
(
self
)
->
dict
[
str
,
str
]: ...
def
get_default_weight
(
self
)
->
str
: ...
@
staticmethod
def
get_default_size
()
->
float
: ...
def
set_default_weight
(
self
,
weight
:
str
)
->
None
: ...
def
score_family
(
self
,
families
:
str
|
list
[
str
]
|
tuple
[
str
],
family2
:
str
)
->
float
: ...
def
score_style
(
self
,
style1
:
str
,
style2
:
str
)
->
float
: ...
def
score_variant
(
self
,
variant1
:
str
,
variant2
:
str
)
->
float
: ...
def
score_stretch
(
self
,
stretch1
:
str
|
int
,
stretch2
:
str
|
int
)
->
float
: ...
def
score_weight
(
self
,
weight1
:
str
|
float
,
weight2
:
str
|
float
)
->
float
: ...
def
score_size
(
self
,
size1
:
str
|
float
,
size2
:
str
|
float
)
->
float
: ...
def
findfont
(
self
,
prop
:
str
|
FontProperties
,
fontext
:
Literal
[
"ttf"
,
"afm"
]
=
...,
directory
:
str
|
None
=
...,
fallback_to_default
:
bool
=
...,
rebuild_if_missing
:
bool
=
...,
)
->
str
: ...
def
get_font_names
(
self
)
->
list
[
str
]: ...
def
is_opentype_cff_font
(
filename
:
str
)
->
bool
: ...
def
get_font
(
font_filepaths
:
Iterable
[
str
|
Path
|
bytes
]
|
str
|
Path
|
bytes
,
hinting_factor
:
int
|
None
=
...,
)
->
ft2font
.
FT2Font
: ...
fontManager
:
FontManager
def
findfont
(
prop
:
str
|
FontProperties
,
fontext
:
Literal
[
"ttf"
,
"afm"
]
=
...,
directory
:
str
|
None
=
...,
fallback_to_default
:
bool
=
...,
rebuild_if_missing
:
bool
=
...,
)
->
str
: ...
def
get_font_names
()
->
list
[
str
]: ...
You can’t perform that action at this time.