Update Glyph reading to handle multiple casings / fallback by SimonDarksideJ · Pull Request #8855 · MonoGame/MonoGame

added 2 commits

June 24, 2025 16:42

@SimonDarksideJ

ThomasFOG

CartBlanche pushed a commit that referenced this pull request

Jun 27, 2025
# Description of Change

Searching the Glyph registry is currently case-sensitive, which creates
issues when a Font or BitmapFont is designed for a specific casing when
attempting to measure a string:

- Uppercase font - mixed case MeasureString - fails

Added fallback implementation where if a resolution fails for
identifying a Glyph from a font, to also check the opposing casing for a
result.

- Tests Included