Font constructor
Contents
[
Hide
]
init
Initializes a new instance of the Font
class with a specified font family name and a size.
def __init__(self, font_family_name, size):
...
Parameter | Type | Description |
---|---|---|
font_family_name | str | The font family name. |
size | float | The size of the new font. |
init
Initializes a new instance of the Font
class with a specified font family name, a size and a style.
def __init__(self, font_family_name, size, style):
...
Parameter | Type | Description |
---|---|---|
font_family_name | str | The font family name. |
size | float | The size of the new font. |
style | FontStyle |
The style of the new font. |
init
Initializes a new instance of the Font
class with a specified custom font family name, folder path with a font and a size.
def __init__(self, font_family_name, folder_path, size):
...
Parameter | Type | Description |
---|---|---|
font_family_name | str | The font family name. |
folder_path | str | Folder path which contains TrueType font files |
size | float | The size of the new font. |
init
Initializes a new instance of the Font
class with a specified custom font family name, folder path with a font and a size.
def __init__(self, font_family_name, folder_path, size, style):
...
Parameter | Type | Description |
---|---|---|
font_family_name | str | The font family name. |
folder_path | str | Folder path which contains TrueType font files |
size | float | The size of the new font. |
style | FontStyle |
See Also
- module
groupdocs.watermark.watermarks
- class
Font