Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase Font size #1548

Open
DanRStevens opened this issue Jan 29, 2025 · 3 comments
Open

Increase Font size #1548

DanRStevens opened this issue Jan 29, 2025 · 3 comments

Comments

@DanRStevens
Copy link
Member

DanRStevens commented Jan 29, 2025

A common complaint for users, especially with 4k monitors, is the font sizes are too small.

At this point, we should probably be designing for an audience that likely has 4k monitors. There might be a few stuck at 1080p, perhaps for lower end laptops, so maybe not forget about that end, but I think the target should be 4k.

Currently the font sizes are hardcoded in appOPHD/Constants/UiConstants.h:

inline constexpr int FontPrimaryNormal{10};
inline constexpr int FontPrimaryMedium{14};
inline constexpr int FontPrimaryLarge{16};
inline constexpr int FontPrimaryHuge{20};

Maybe we should start by adjusting these constants, even if we don't have in-game resize capability yet.


Edit: Related:

Many UI elements will need to be resized for larger fonts. That would be easier with layout containers that could automatically position and size controls.

@DanRStevens
Copy link
Member Author

DanRStevens commented Jan 29, 2025

Tried bumping the font sizes by 2 points each to see how things looked. Mostly they looked pretty good. There were a few graphical glitches though.

The "Underground" text overflows the button:
Image

The "Space Available" button is close to the bounds. Doesn't look very centered either. I suppose none of the buttons are quite centered:
Image

The "Tapped Out" button looks a bit close to the margins:
Image

The "Common Minerals Ore" text overlaps with the progress bar:
Image

The Mine Facility Operations view overflows the window to the right:
Image

The Storage Tanks view overflows the window:
Image

The Smelter and SEED Smelter view overflows the window:
Image

The Residential Facility view overflows the window:
Image

The "Cancel" button on the Factory view doesn't have sufficient margin:
Image

The Tile Inspector window looks cramped:
Image

@DanRStevens
Copy link
Member Author

Bumping font sizes up by 4 points, there are a few more glitches:

Load game screen text starts to overflow buttons:
Image

Factory report shows item name and progress bar too close together:
Image

Mine report starts to overflow the window, and progress bar text has an odd bottom alignment:
Image

Mine report has a rather cramped table at the bottom right:
Image

Factory production view overflows the window to the right, and button text starts to overflow buttons:
Image

Nav control text starts to overlap buttons:
Image

@DanRStevens
Copy link
Member Author

DanRStevens commented Feb 26, 2025

We've bumped all the standard fonts by 2 points each.


An increase of 4 points still produces graphics glitches. Perhaps it's time for a progress update.

The Mine Operations window still has overlapping and overflowing text:
Image

The MineReport screen had overlap and overflow for the "Trucks & Routing" section at the bottom right. A mine with routes needs to be selected to see this:
Image

On the FactoryReport screen the "Underground" text overflows the button:
Image

On the WarehouseReport screen, the "Space Available" text overflows the button:
Image

Those seems to be the only outright glitches left. There are additionally a few places where button text is getting very close to button size, and we may want to consider increasing button sizes further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant