View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0006283||The Dark Mod||Coding||public||01.04.2023 20:27||02.04.2023 08:08|
|Product Version||TDM 2.11|
|Target Version||TDM 2.12||Fixed in Version||TDM 2.12|
|Summary||0006283: Support aspect ratio corrections for fonts|
|Description||The whole GUI system is rendered in virtual 640:480 resolution, which is later scaled onto the screen that player has.|
Since today nobody uses 4:3 displays and everyone uses something around 16:9 (don't even think about poor guys with 21:9), everything get stretched +33% by X.
This also applies to fonts: they are rendered with intended proportions in virtual 4:3 screen, but player sees them distorted.
The idea is to take an existing font and reduce all of its X lengths so that it looks properly on player screen.
Since having different text layouts depending on player's aspect ratio is quite undesirable, we'd better ask for explicit aspect ratio correction.
So e.g. we can support fonts like "fonts/carleton@aspect=16:9" that would multiply all X lengths by 75% so that it looks perfectly on 16:9 screen.
Of course if player has 16:10 screen, it would be slightly stretched, but that's a minor sacrifice to do in order to get same layout for everyone.
|Additional Information||This is originally an improvement to make subtitles more readable:|
Unlike most of other text, player does not have too much time on reading subtitles, so they should be easy to read and not obstruct too much screen space.
|Tags||No tags attached.|
r10346 Allow using aspect-corrected fonts like "fonts/carleton@aspect=16:9"
r10347 Convert all font sizes from int to float.
It seems to work fine for carleton.
For stone font, I see that letters slightly overflow into each other (random thin white lines), but this issue happens without aspect correction too.
|01.04.2023 20:27||stgatilov||New Issue|
|01.04.2023 20:27||stgatilov||Status||new => assigned|
|01.04.2023 20:27||stgatilov||Assigned To||=> stgatilov|
|02.04.2023 08:08||stgatilov||Note Added: 0015986|
|02.04.2023 08:08||stgatilov||Status||assigned => resolved|
|02.04.2023 08:08||stgatilov||Resolution||open => fixed|
|02.04.2023 08:08||stgatilov||Fixed in Version||=> TDM 2.12|