fill_and_stroke_text method
Contents
[
Hide
]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):
...
Parameter | Type | Description |
---|---|---|
text | str | The text to add. |
font | aspose.pydrawing.Font | System font that will be used to draw text. |
x | float | X coordinate for text origin. |
y | float | Y coordinate for text origin. |
fill_paint | aspose.pydrawing.Brush | The fill used for painting glyphs interior. |
stroke | aspose.pydrawing.Pen | The 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):
...
Parameter | Type | Description |
---|---|---|
text | str | The text to add. |
dr_font | aspose.page.font.DrFont | DrFont that will be used to draw text. It can be used with custom font that is located in custom folder. |
x | float | X coordinate for text origin. |
y | float | Y coordinate for text origin. |
fill_paint | aspose.pydrawing.Brush | The fill used for painting glyphs interior. |
stroke | aspose.pydrawing.Pen | The 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):
...
Parameter | Type | Description |
---|---|---|
text | str | The text to add. |
advances | list | An array of glyphs width. It’s length must comply with the number of glyphs in the string. |
font | aspose.pydrawing.Font | System font that will be used to draw text. |
x | float | X coordinate for text origin. |
y | float | Y coordinate for text origin. |
fill_paint | aspose.pydrawing.Brush | The fill used for painting glyphs interior. |
stroke | aspose.pydrawing.Pen | The 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):
...
Parameter | Type | Description |
---|---|---|
text | str | The text to add. |
advances | list | An array of glyphs width. It’s length must comply with the number of glyphs in the string. |
dr_font | aspose.page.font.DrFont | DrFont that will be used to draw text. It can be used with custom font that is located in custom folder. |
x | float | X coordinate for text origin. |
y | float | Y coordinate for text origin. |
fill_paint | aspose.pydrawing.Brush | The fill used for painting glyphs interior. |
stroke | aspose.pydrawing.Pen | The stroke used for drawing glyphs contours. |
See Also
- module
aspose.page.eps
- class
PsDocument