Open TimGoll opened 9 months ago
the main thing is that we generate a font starting from the global scale, so that the initial font selected is not stretched, like on 1.7: vs 2.0 (applied same-session): vs 2.0 (applied after a map restart):
and for the "breakpoint" font sizes to correspond with a multiple of the initial font size, e.g.
1.7, 2.55, 3.4, 4.25
and we use those scales when the requested font scale is 1, 1.5, 2.0, 2.5
so that they're crisp as well
internally, i believe nearly all the font scale calls are using one of the preset breakpoints
internally, i believe nearly all the font scale calls are using one of the preset breakpoints
internally we only use the 1.0 scale, or the scale defined with the slider. We never increase a font by using a scale factor. So if we were to recreate fonts on scale change, we only would need a single font
TTT2_OS_SC_SB.zip
also here's the font i edited the name to if we wanted to use Open Sans SemiCondensed SemiBold
across the board, i renamed it to TTT2_OS_SC_SB
and that's what the CreateFont
declaration should call it as well
This is an issue with multiple things that should be changed for fonts. This can happen over multiple PRs
Tahoma
to a different font that is distributed with TTT2. CurrentlyOpenSans
seems like a good canidateTTT2FinishedLoading
so that our advanced font system is hotreload safeIdea: Don't pregenerate advanced fonts for 1.0, 1.5 and 2.0 scale but generate the fitting font on scale change. So if you set the scale to 1.3, all fonts are regenerated to use that scale. We might have to support the old system still, because some addons might use it