love icon indicating copy to clipboard operation
love copied to clipboard

[12.0] love.graphics.print(): misordered characters when using fallback fonts

Open frank-f-trafton opened this issue 1 year ago • 1 comments

Version: 12.0-development (8951635)

Repro: 12-fallbacks.zip

Problem: When drawing text with love.graphics.print() using a font that has been configured with fallbacks, glyphs originating from the fallback fonts may appear in the wrong place.

Expected appearance of text, using NotoSans with NotoSansSymbol2 as a fallback:

a⇨b⇨c The⇨quick⇨brown⇨fox a⏎a⏎⇨⏎

Observed:

a⇨⇨bc The⇨⇨⇨quickbrownfox a⏎⏎⇨⏎a

The expected order appears in LÖVE 11.5:

11 5 12 0-dev-8951635

frank-f-trafton avatar Dec 07 '23 00:12 frank-f-trafton