leezer3 / OpenBVE

OpenBVE- A free train simulator
http://www.openbve-project.net
275 stars 52 forks source link

Missing button text main screens (not running a train) #875

Closed edgreenberg closed 1 year ago

edgreenberg commented 1 year ago

Description

Missing button text main screens (not running a train)

Also, the four links (Visit, Check update, report problem and about) are blank. Just a gray area on the screen. I'm attaching screenshots.

OpenBVE_001 OpenBVE_002 OpenBVE_003 OpenBVE_004

Reproduction

Happens before a route or train is selected

Route

n/a

Train

n/a

Logs

Logs may be accessed through the 'Report Problem' button on the bottom left of the screen. Please provide a log, and a crash-log if the game actually crashes. openBVE Bug Report18_03_2023.zip

Related information

leezer3 commented 1 year ago

Now that's wierd :/ Unfortunately, the main form under Mono has never been the most reliable, and WinForms under Linux are sadly essentially abandoned.

I'm wondering about text colouring being picked up from the system badly- IIRC Ubuntu still has a default black theme, so perhaps its something to do with that. That also ties in with the main buttons working OK; I think the color on those is set manually so that the color change thing works OK.

edgreenberg commented 1 year ago

I will try messing with the various screen colors. Meanwhile, could I trouble you to send a few screenshots so that I know what these buttons do? I no longer have my old system. The old system was Fedora 31.

Outside of that, things are working very well under Ubuntu Mate 22.10. I want to take a minute to thank you for all you do on this program. It is really enjoyable to run the New York subways on it.

Message ID: @.***>

Kenny-Hui commented 1 year ago

Try changing your font in the options to something like "Noto Sans" or "Ubuntu"

image

On some fonts like Noto Sans CJK, the font height is higher than it should be. (And this has always been the case)

Some label or button does not have enough height to show the font, and it will refuse to show the text if there's not enough height to display he font. (Although it seems to varies between system on whether it decides to show or not).

This is mostly unnoticed previously because IIRC it only uses the regular Noto Sans font. When the user-selectable font is introduced, (I think) it now defaults to Noto Sans JP which has a higher height than usual.

I suppose increasing the button and label height would solve it, although there's alot of labels that needs changing and it's mostly just a trial and error.


It also seems like resizing from one tab, then switch to the other will have some funny results. Although give it a little more resizing should fixes it and probably isn't worth dealing with.