@@ -400,6 +400,10 @@ def _place_text(
400
400
yposition ,
401
401
text_palette_index = 1 ,
402
402
background_palette_index = 0 ,
403
+ print_only_pixels = True , # print_only_pixels = True: only update the bitmap where the glyph
404
+ # pixel color is > 0. This is especially useful for script fonts where glyph
405
+ # bounding boxes overlap
406
+ # Set `print_only_pixels=False` to write all pixels
403
407
):
404
408
# placeText - Writes text into a bitmap at the specified location.
405
409
#
@@ -514,10 +518,16 @@ def bounding_box(self):
514
518
# return self._scale
515
519
516
520
# @scale.setter
521
+ # #@displayio.Group.scale.setter
517
522
# def scale(self, new_scale):
518
523
# self._scale=new_scale
519
524
# #super(displayio.Group, self).scale.fset(self, new_scale)
520
- # anchored_position=self._anchored_position # update the anchored_position
525
+ # self.anchored_position=self._anchored_position # update the anchored_position
526
+ # #displayio.Group.scale.__set__(self, new_scale)
527
+ # #displayio.Group.scale=new_scale
528
+ # #setattr(super(), "scale", new_scale)
529
+ # #setattr(self, "scale", new_scale)
530
+ # super(displayio.Group, self).scale.__set__(self, new_scale)
521
531
522
532
def set_scale (self , new_scale ):
523
533
"""Set the scaling of the label"""
0 commit comments