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) |
![]() | |
str | to_string_with_print_plane (self, Optional[object] print_plane) |
Converts the text object to a string with an optional print plane. | |
Public Attributes | |
font_style | |
font_size_units | |
Additional Inherited Members | |
![]() | |
List | text [ITextItem] |
![]() | |
IRuler | ruler |
![]() | |
str | font_name |
![]() | |
FontStyleEnum | font_style |
![]() | |
FontSizeUnitsEnum | font_size_units |
![]() | |
RotateEnum | rotation |
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 ) |
Initializes a new instance of the Text class.
This constructor sets up a new Text object using the provided list of text items, which use the same text settings.
text | List of text items that use the same text settings. |
Reimplemented from LabelMaker.Interfaces.IText.AText.
str LabelMaker.PGL.Text.Text.__str__ | ( | self | ) |
Returns a string that can be sent to the printer.
This method generates a string representation of the Text instance that is formatted and ready to be sent to a printer. The string includes all the necessary commands and data required for printing.
Reimplemented from LabelMaker.Interfaces.IText.AText.
IFontSize LabelMaker.PGL.Text.Text.get_font_size_pgl | ( | self, | |
IFontSize | font_size, | ||
FontSizeUnitsEnum | font_units, | ||
Optional[IRuler] | ruler ) |
LabelMaker.PGL.Text.Text.font_size_units |
LabelMaker.PGL.Text.Text.font_style |