Font constructor

Contents
[ ]

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 System.String 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 System.String The font family name.
size float The size of the new font.
style groupdocs.watermark.watermarks.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 System.String The font family name.
folder_path System.String 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 System.String The font family name.
folder_path System.String Folder path which contains TrueType font files
size float The size of the new font.
style groupdocs.watermark.watermarks.FontStyle

See Also