Update Glyph reading to handle multiple casings / fallback by SimonDarksideJ · Pull Request #8855 · MonoGame/MonoGame
added 2 commits
June 24, 2025 16:42CartBlanche 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters