A class representing a text object. More...
Public Member Functions | |
| __init__ (self, Optional[ITextItem] text=None) | |
| Initializes a new instance of the Text class. | |
| str | __str__ (self) |
| Returns a string that can be sent to the printer. | |
| IFontSize | get_font_size_pgl (self, IFontSize font_size, FontSizeUnitsEnum font_units, Optional[IRuler] ruler) |
Public Member Functions inherited from LabelMaker.Interfaces.IText.AText | |
| __init__ (self, Optional[ITextItem] text_item=None) | |
| Initializes a text object with optional text item. | |
| str | __str__ (self) |
| Returns a string representation of the text object. | |
| str | to_string_with_print_plane (self, Optional[object] print_plane) |
| Converts the text object to a string with an optional print plane. | |
Public Member Functions inherited from LabelMaker.Interfaces.IText.IText | |
| str | __str__ (self) |
Additional Inherited Members | |
Public Attributes inherited from LabelMaker.Interfaces.IText.AText | |
| Optional[IRuler] | ruler = None |
| Optional[str] | font_name = None |
| str | font_style = FontStyleEnum.NORMAL |
| str | font_size_units = FontSizeUnitsEnum.POINTS |
| str | alignment = AlignEnum.DEFAULT |
| str | rotation = RotateEnum.NONE |
Static Public Attributes inherited from LabelMaker.Interfaces.IText.IText | |
| List | text [ITextItem] |
A class representing a text object.
This class inherits from AText and provides functionality for initializing, configuring, and describing text objects for printing purposes. Text objects can be configured with various font styles, sizes, and alignments.
| LabelMaker.PGL.Text.Text.__init__ | ( | self, | |
| Optional[ITextItem] | text = None ) |
| str LabelMaker.PGL.Text.Text.__str__ | ( | self | ) |
| IFontSize LabelMaker.PGL.Text.Text.get_font_size_pgl | ( | self, | |
| IFontSize | font_size, | ||
| FontSizeUnitsEnum | font_units, | ||
| Optional[IRuler] | ruler ) |