TextAlign¶
-
class
pyrender.constants.
TextAlign
[source]¶ Bases:
object
Text alignment options for captions.
Only use one at a time.
Attributes Summary
BOTTOM_CENTER
Center the text by width and fix it to the bottom. BOTTOM_LEFT
Put the text in the bottom-left corner. BOTTOM_RIGHT
Put the text in the bottom-right corner. CENTER
Center the text by width and height. CENTER_LEFT
Center the text by height and left-align it. CENTER_RIGHT
Center the text by height and right-align it. TOP_CENTER
Center the text by width and fix it to the top. TOP_LEFT
Put the text in the top-left corner. TOP_RIGHT
Put the text in the top-right corner. Attributes Documentation
-
BOTTOM_CENTER
= 5¶ Center the text by width and fix it to the bottom.
-
BOTTOM_LEFT
= 3¶ Put the text in the bottom-left corner.
-
BOTTOM_RIGHT
= 4¶ Put the text in the bottom-right corner.
-
CENTER
= 0¶ Center the text by width and height.
-
CENTER_LEFT
= 1¶ Center the text by height and left-align it.
-
CENTER_RIGHT
= 2¶ Center the text by height and right-align it.
-
TOP_CENTER
= 8¶ Center the text by width and fix it to the top.
-
TOP_LEFT
= 6¶ Put the text in the top-left corner.
-
TOP_RIGHT
= 7¶ Put the text in the top-right corner.
-