create_font method

create_font

Creates a new TrueType font resource out of stream.

Returns

New TrueType font resource.

def create_font(self, stream):
    ...
ParameterTypeDescription
streamio.RawIOBaseThe stream containing the ICC profile to take as a resource.

create_font

Creates a new TrueType font resource.

Returns

New TrueType font resource.

def create_font(self, font_family, font_style):
    ...
ParameterTypeDescription
font_familystrThe font family.
font_styleaspose.pydrawing.FontStyleThe font style.

See Also