In the case of !RENDER_BLIT it always clears graphics: if I have reached updateGraphic it means I already know that the text is sufficiently different from the previous one to redraw all, so clearing graphics is correct, but… in RENDER_BLIT it adds a few conditions for redrawing, that in my case were not always met (“0.04” has the same size of “0.08” in pixels), leading to overlapping redraws of texts.
I think that the code can be modified like this
bitmapData.fillRect should be more efficient than disposing and recreating the BitmapData each time. We made fillRect changes in Lime 5.1, have you tested it? Perhaps that fixes the issue?
My only target is HTML5, and I use canvas because webGL has problems with masks.
WebGL is ok, the overlapping texts do not show up: maybe a bug in canvas fillRect (maybe an issue with transparencies)?
Resurrecting this thread from its slumber, but the bitmapFont libraries on github are fairly old and use tilesheets. I was wondering if @GiG, your updated/fixed library is up somewhere?