Lycowolf/streaming_deckbuilder

Build and Evil counters have distorted graphics

Closed this issue · 3 comments

image
image
image

When buying cards, captions Build and Evil are moving a few pixels left and right and the letters are broken from time to time.
Zuzka

This is caused by a code that centers the text: we calculate its width and height and divide by two. When the text has the right (wrong) dimensions, it gets placed at half-pixel boundary, which messes up the text antialiasing.

Pull request created.

Still (again?) not completely solved.
The "Build" label consistently rendered glitched, probably again by antialiasing fail.

Possibly got broken with change of Globals from string labeling to enum (and string rendering related to that)

Because you mention Globals converted to enum, I presume you see this error happens on refactor_loading branch. This branch is based on 2876789 that doesn't contain fixes from PR #10. I recommend rebasing onto current master :)