-
-
Notifications
You must be signed in to change notification settings - Fork 110
Open
Description
Repro
- Modify the
Fontsblock in default_ui_skin.mms so that it reads as follows
<Fonts UsedSpace="0, 0, 1024, 160">
<Font Id="default-font" File="Inter-Regular.ttf" Size="20"/>
<Font Id="tooltip-font" File="Inter-Regular.ttf" Size="16"/>
<Font Id="monospace-font" File="Consolas.ttf" Size="18" />
</Fonts>- Add a Consolas.ttf as a resource to the Myra.Monogame project with the path
Resources.Consolas.ttf. (Any TTF file should work as long as it matches the above) - Draw a UI containing two or more widgets which contain text using
default-font. - Change one of the widgets to use
monospace-font. - Draw the UI again.
Expected Result
The UI should draw with one label using the original default and the other font using Consolas.
Actual Result
Everything draws correctly before the font change.
After the font change, the Consolas label draws correctly, but everything that was using the default font draws garbage.

Metadata
Metadata
Assignees
Labels
No labels