The GlsFontFactory Python interface file.
- Copyright
- Copyright Information
◆ DerivedClassName()
| str DerivedClassName |
( |
str |
name, |
|
|
str |
style, |
|
|
int |
ptSize |
|
) |
| |
Returns the name of the class that would be generated for a derived font class.
- Parameters
-
| name | the font family to use |
| style | the font style to use |
| ptSize | the point size of the font in question |
- Returns
- the class name that should be generated for this font
◆ FindBestFontMatch()
| None FindBestFontMatch |
( |
str |
postscriptName, |
|
|
str |
familyResult, |
|
|
str |
styleResult |
|
) |
| |
Find the best match for family and style for a given Postscript font name.
- Parameters
-
| postscriptName | Postscript font name to search for. |
| familyResult | Return the closest matching font family string. |
| styleResult | Return the closest matching font style string. |
◆ GetFontFile()
| str GetFontFile |
( |
str |
family, |
|
|
str |
style, |
|
|
int |
ptSize |
|
) |
| |
Retrieves the font filename for a given font family, style, and point size.
- Parameters
-
| family | Font family name |
| style | Font style name |
| ptSize | Point size |
- Returns
- If found, returns the font filename, else empty string