Sasszem / 13

Recreation of a simple but addictive game
MIT License
0 stars 0 forks source link

fix: Centering the time display #34

Closed Sasszem closed 4 years ago

Sasszem commented 4 years ago

Closes #31

Btimes2 commented 4 years ago

Screenshot_20200624_013114 Alapvetően oké, de most látványosan balra hord szerintem. Van valami más ötleted?

Sasszem commented 4 years ago

Ok, I tracked down the root cause of this off-center problem. The thing is, my previous centering code was perfect, it centered it based on the dynamic size, and that caused it to move noticably when the numbers changed. Now, it is "centered" based on the width of the widest character, and this causes it to be off-centered if our number is shorter than this.

I am thinking about a good solution.

Idk, it won't ever be perfect... What do you think, @Btimes2?

Sasszem commented 4 years ago

So, use a monospace font... Yea, that would be the best solution, and we are already looking for a "default" font.

Btimes2 commented 4 years ago

I added a font on my branch, it just has to be merged.

Sasszem commented 4 years ago

I added a font on my branch, it just has to be merged.

Just do not forget to add closes #34 to it, so it will auto-close this as well.

Sasszem commented 4 years ago

With a new font, the solution will be different.