RonenNess / GeonBit.UI

UI system for MonoGame projects.
MIT License
467 stars 63 forks source link

Geon bit master 4.3 font fix #139

Open DavidFidge opened 7 months ago

DavidFidge commented 7 months ago

Fix FontDescriptionProcessor had unexpected failure build issue on windows - use specific ttf files instead of relying on installed fonts.

https://community.monogame.net/t/fontdescriptionprocessor-had-unexpected-failure/18110/3

Also note that installed fonts don't work properly on windows since it is unable to resolve the unique 'styles' that Bitstream Vera Sans Mono has (refer to monogame pull request 7993). Using ttf directly avoids all these issues.

MonoGame/MonoGame#7993

DavidFidge commented 7 months ago

The current version has build issues on windows - the content builder comes up with "FontDescriptionProcessor had unexpected failure build". Installing fonts via right-clicking and Install in Windows Explorer does not fix the issue, at least not in windows 11 - the variants (bold, italic, roman, oblique) are treated as styles of the font family rather than being installed as a font in its own right. I'm not sure if there's a way in Windows to force it to install the sub-styles as a top level font. I couldn't find one.

The easiest fix is just to have the content builder use the .ttf file directly. Refer to https://community.monogame.net/t/fontdescriptionprocessor-had-unexpected-failure/18110/3

I haven't tested this on Linux.

DavidFidge commented 7 months ago

Looks like there's a similar pull request in #138