fill_and_stroke_text method

fill_and_stroke_text

Adds a text string by filling interrior of glyphs and drawing glyphs contours.

def fill_and_stroke_text(self, text, font, x, y, fill_paint, stroke):
    ...
ParameterTypeDescription
textstrThe text to add.
fontaspose.pydrawing.FontSystem font that will be used to draw text.
xfloatX coordinate for text origin.
yfloatY coordinate for text origin.
fill_paintaspose.pydrawing.BrushThe fill used for painting glyphs interior.
strokeaspose.pydrawing.PenThe stroke used for drawing glyphs contours.

fill_and_stroke_text

Adds a text string by filling interrior of glyphs and drawing glyphs contours.

def fill_and_stroke_text(self, text, dr_font, x, y, fill_paint, stroke):
    ...
ParameterTypeDescription
textstrThe text to add.
dr_fontaspose.page.font.DrFontDrFont that will be used to draw text. It can be used with custom font that is located in custom folder.
xfloatX coordinate for text origin.
yfloatY coordinate for text origin.
fill_paintaspose.pydrawing.BrushThe fill used for painting glyphs interior.
strokeaspose.pydrawing.PenThe stroke used for drawing glyphs contours.

fill_and_stroke_text

Adds a text string by filling interrior of glyphs and drawing glyphs contours.

def fill_and_stroke_text(self, text, advances, font, x, y, fill_paint, stroke):
    ...
ParameterTypeDescription
textstrThe text to add.
advanceslistAn array of glyphs width. It’s length must comply with the number of glyphs in the string.
fontaspose.pydrawing.FontSystem font that will be used to draw text.
xfloatX coordinate for text origin.
yfloatY coordinate for text origin.
fill_paintaspose.pydrawing.BrushThe fill used for painting glyphs interior.
strokeaspose.pydrawing.PenThe stroke used for drawing glyphs contours.

fill_and_stroke_text

Adds a text string by filling interrior of glyphs and drawing glyphs contours.

def fill_and_stroke_text(self, text, advances, dr_font, x, y, fill_paint, stroke):
    ...
ParameterTypeDescription
textstrThe text to add.
advanceslistAn array of glyphs width. It’s length must comply with the number of glyphs in the string.
dr_fontaspose.page.font.DrFontDrFont that will be used to draw text. It can be used with custom font that is located in custom folder.
xfloatX coordinate for text origin.
yfloatY coordinate for text origin.
fill_paintaspose.pydrawing.BrushThe fill used for painting glyphs interior.
strokeaspose.pydrawing.PenThe stroke used for drawing glyphs contours.

See Also