plot
find_font_path(family, weight='normal', style='normal')
¶
Find the file path of a font given its family, weight, and style.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
family
|
str
|
Font family name (e.g., "Arial"). |
required |
weight
|
str
|
Font weight (e.g., "normal", "bold"). |
'normal'
|
style
|
str
|
Font style (e.g., "normal", "italic"). |
'normal'
|
Returns:
| Type | Description |
|---|---|
str | None
|
The file path of the matching font, or None if not found. |