ozonexo3 / FAForeverMapEditor

MIT License
45 stars 19 forks source link

Texts do not draw #148

Open Odepax opened 3 years ago

Odepax commented 3 years ago

Hello, there.

Just unpacked version v0.704-alpha, and I think that some text elements are not drawn:

image

Another example in the side bar:

image

Direct3D: Version: Direct3D 11.0 [level 11.0] Renderer: NVIDIA GeForce GT 740M (ID=0x1292) Vendor:
VRAM: 2009 MB Driver: 25.21.14.2531

SHOTbyGUN commented 1 year ago

None of the texts draw for me in top menu row, so I assume some font is missing from my wine installation.

If someone would find fonts used, we could add it to dependencies list for Linux users, so that they could populate their wineprefixes right.

ozonexo3 commented 1 year ago

Editor should not use system fonts, All fonts are included and are generated to texture by Unity itself. I just checked and on top app-menu fonts are not assigned so its using default font: Arial. It should use Roboto font included in the the project instead.

Just pushed fix for that, assigned Roboto everywhere where Arial was used 405a787eb3a1be8ec8f826dd0e59fbeaff8c8026

If font is still not rendering in new builds then 99% issue is with text fields being too small so text is culled. Maybe something changed between Unity releases or even something is different on Linux. Or maybe it even not scale correctly on some resolutions. Solution is to make these fields like 1-2 pixels bigger.

Cursedth commented 2 months ago

v0.703-alpha Text doesn't show when UI -scale set to 1.25 (and maybe higher.) Reducing scale to 1.20 shows text again.