How to change the FontFamily ingame?
Posted: 04 Jun 2024, 16:56
Hi,
We're currently using a ResourceDictionary that includes the default font used by our game, something like this:
We want to change this MainFont depending on TWO things:
·The language selected, for example if the user selects Japanese we want to use another font, if they select Korean another, etc...
·The user can also select between two different fonts for the english language, for example they can play with MainFontA or MainFontB.
I'm not sure if Noesis supports this and what would be the best way to handle this. Any pointers would be greatly appreciated.
We're currently using a ResourceDictionary that includes the default font used by our game, something like this:
Code: Select all
<FontFamily x:Key="MainFont">/Assets/UI/Fonts/#MainFont</FontFamily>·The language selected, for example if the user selects Japanese we want to use another font, if they select Korean another, etc...
·The user can also select between two different fonts for the english language, for example they can play with MainFontA or MainFontB.
I'm not sure if Noesis supports this and what would be the best way to handle this. Any pointers would be greatly appreciated.