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

[SP] Font fixes #1227

Merged
merged 3 commits into from
Apr 7, 2024
Merged

[SP] Font fixes #1227

merged 3 commits into from
Apr 7, 2024

Commits on Apr 7, 2024

  1. [SP] Add CG_MagicFontToReal function to map magic number fonts to the…

    …ir vanilla equivalents.
    
    This fixes JACoders#1226.
    Daggolin committed Apr 7, 2024
    Configuration menu
    Copy the full SHA
    77be2ef View commit details
    Browse the repository at this point in the history
  2. [SP] Rename MenuFontToReal to UI_MenuFontToReal and replace hardcoded…

    … font mapping with a dynamic list of up to 64 fonts.
    
    This might help with possible corner cases where custom assets have the menu loads differents fonts in place of the vanilla ones. The maximum of 64 fonts was chosen, because I wanted to avoid dynamic allocation. As the vanilla game only loads 5 different fonts and as I am not aware of custom mods that add a lot more I chose the value 64 to hopefully leave enough room for mods.
    
    The same change can NOT be applied to CG_MagicFontToReal, because the cgame module does not parse the menu files and does not know the order of fonts in menu files.
    Daggolin committed Apr 7, 2024
    Configuration menu
    Copy the full SHA
    a7855ce View commit details
    Browse the repository at this point in the history
  3. [Shared] Fix CFontInfo::m_isVariant not getting initialized for non-v…

    …ariant fonts.
    
    This fixes r_reloadfonts in SP.
    Daggolin committed Apr 7, 2024
    Configuration menu
    Copy the full SHA
    3909676 View commit details
    Browse the repository at this point in the history