


Point that anchored_position moves relative to. Subclass documentation for the possible values. Label_direction ( str) – string defining the label text orientation. (4, ” “) will indicate a tab replacement of 4 spaces, defaults to 4 spaces by Tab_replacement ( ( int, str )) – tuple with tab character replace information. This is helpful when two or more labels need to be aligned to the same baseline Scale ( int) – Integer value of the pixel scalingīase_alignment ( bool) – when True allows to align text label to the baseline. (0,0) is top left, (1.0, 0.5): is middle right.)Īnchored_position ( ( int, int )) – Position relative to the anchor_point. Tuple with decimal percentage of width and height. Padding_right ( int) – Additional pixels added to background bounding box at rightĪnchor_point ( ( float, float )) – Point that anchored_position moves relative to. Padding_left ( int) – Additional pixels added to background bounding box at left Padding_bottom ( int) – Additional pixels added to background bounding box at bottom Padding_top ( int) – Additional pixels added to background bounding box at top When set to ‘True’ Padding parameters will be ignored. Line_spacing ( float) – Line spacing of text to displayīackground_tight ( bool) – Set True only if you want background box to tightly Must include a capital M for measuring character size.Ĭolor ( int) – Color of all text in RGB hexīackground_color ( int) – Color of the background, use None for transparent Parametersįont ( ~BuiltinFont, ~BDF, or ~PCF) – A font class that has get_bounding_box and get_glyph. Have the correct behavior for that type of label. Subclasses should implement _set_text, _set_font, and _set_line_spacing to Note: This should be treated as an abstract base class. This containsĪll of the properties and functions that work the same way in all labels. Superclass that all other types of labels will extend. LabelBase ( * args : Any, ** kwargs : Any ) ¶ Adafruit_display_text ¶ class adafruit_display_text.
