You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Hmm, that's tricky.

    it would be convenient if g.clearRect(x, y, x+g.stringWidth(text), y+g.getFontHeight()) was always guaranteed to cover a single line drawn via g.drawString(text)

    While not quite as pretty, I think that is probably the best solution here, and it's definitely the least hacky :) I'll see about tweaking that...

About

Avatar for Gordon @Gordon started