File tree 1 file changed +1
-26
lines changed
1 file changed +1
-26
lines changed Original file line number Diff line number Diff line change @@ -232,7 +232,6 @@ def _update_text(
232
232
i = 1
233
233
else :
234
234
i = 0
235
- old_c = 0
236
235
y_offset = int (
237
236
(
238
237
self ._font .get_glyph (ord ("M" )).height
@@ -257,11 +256,7 @@ def _update_text(
257
256
bottom = max (bottom , y - glyph .dy + y_offset )
258
257
position_y = y - glyph .height - glyph .dy + y_offset
259
258
position_x = x + glyph .dx
260
- if (
261
- not self ._text
262
- or old_c >= len (self ._text )
263
- or character != self ._text [old_c ]
264
- ) and (glyph .width > 0 and glyph .height > 0 ):
259
+ if glyph .width > 0 and glyph .height > 0 :
265
260
try :
266
261
# pylint: disable=unexpected-keyword-arg
267
262
face = displayio .TileGrid (
@@ -286,28 +281,8 @@ def _update_text(
286
281
self [i ] = face
287
282
else :
288
283
self .append (face )
289
- elif self ._text and character == self ._text [old_c ]:
290
-
291
- try :
292
- self [i ].position = (position_x , position_y )
293
- except AttributeError :
294
- self [i ].x = position_x
295
- self [i ].y = position_y
296
-
297
284
x += glyph .shift_x
298
- # TODO skip this for control sequences or non-printables.
299
285
i += 1
300
- old_c += 1
301
- # skip all non-printables in the old string
302
- while (
303
- self ._text
304
- and old_c < len (self ._text )
305
- and (
306
- self ._text [old_c ] == "\n "
307
- or not self ._font .get_glyph (ord (self ._text [old_c ]))
308
- )
309
- ):
310
- old_c += 1
311
286
# Remove the rest
312
287
while len (self ) > i :
313
288
self .pop ()
You can’t perform that action at this time.
0 commit comments