Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix horizontal offset of chatbox cursor #282
The chatbox cursor no longer appears the width of an hyphen ahead of text.
The attached zip file contains:
If you're working on anything that affects alignment or positioning of GUI elements that involve text, possibly.
EDIT: Just to bring a bit of clarity - one of the major issues is that the current text-handling code makes no distinction between the width of the internal rasterized text buffer / image that needs to be drawn, and the layout width of the text. (It just uses the former.) This is why when you ask for the width of a string that ends in a space, it doesn't properly include the full layout width of the space. (But this is just an obvious manifestation of the problem.)