TextAlign¶
-
class
pyrender.constants.TextAlign[source]¶ Bases:
objectText alignment options for captions.
Only use one at a time.
Attributes Summary
BOTTOM_CENTERCenter the text by width and fix it to the bottom. BOTTOM_LEFTPut the text in the bottom-left corner. BOTTOM_RIGHTPut the text in the bottom-right corner. CENTERCenter the text by width and height. CENTER_LEFTCenter the text by height and left-align it. CENTER_RIGHTCenter the text by height and right-align it. TOP_CENTERCenter the text by width and fix it to the top. TOP_LEFTPut the text in the top-left corner. TOP_RIGHTPut 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.
-