Robadob / sdl_exp

Low-level graphics engine built over SDL2
MIT License
1 stars 2 forks source link

Text Bug #58

Open Robadob opened 5 years ago

Robadob commented 5 years ago

Starting a line of text with a space breaks alignment, this is particularly obvious with multiple lines of monospaced font.

Appears due to the control box of space char having min max of 0, 0. Attempting to counteract this with what it would be expected to be, causes unusual results.

Robadob commented 5 years ago

Hacky fix in primage branch, doesn't handle wrapping on '.': 185108ce5756e4cca1f5ab16744b225a7dab99e9

The issue is that current wrapping purely relies on glyph bounding boxes, however;

Would be better to false paint the characters to solve bounding box issue i guess