Hexworks / zircon

Zircon is an extensible and user-friendly, multiplatform tile engine.
https://hexworks.org/projects/zircon/
Apache License 2.0
753 stars 137 forks source link

Weird bug with TTF at certain resolutions #334

Open HOWZ1T opened 4 years ago

HOWZ1T commented 4 years ago

When using TrueTypeFonts and resizing it based on the resolution height and the grid height, at some resolutions characters will render inconsistently, with gaps between them for example. It appears to affect all the true type fonts provided by Zircon.

Here are some examples:

Box doesn't render line straight

Resolution: 1920 x 1080, GridSize: 80 x 45

No artifact at Resolution: 1280 x 720, GridSize: 80 x 45

Examples from Zircon README.md, look at top left corner of the box

HOWZ1T commented 4 years ago

It appears to affect only the Box Decoration.

adam-arold commented 4 years ago

This is interesting. Have you tried using the Box class to reproduce the problem? I'm curious if using it has the same effect.

adam-arold commented 4 years ago

What OS are you using? Can't reproduce this on Windows 10.

HOWZ1T commented 3 years ago

Windows 10.