I have a SpriteFont in XNA, which has the standard 126 characters that are usable.
However i would like to use the "ಠ" symbol in the game.
So is there anyway of adding just a few more symbols that the spritefont accepts?
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.Sign up to join this community
Modify the sprite font file. It's XML. Double click it in Visual Studio.
Towards the bottom of the default file is a the following:
<CharacterRegions> <CharacterRegion> <Start> </Start> <End>~</End> </CharacterRegion> </CharacterRegions>
Your character is unicode code point U+0CA0, which in decimal is 3232. So add another character region tag that contains it:
<CharacterRegion> <Start>ಠ</Start> <End>ಠ</End> </CharacterRegion>
This assumes that the ಠ symbol exists in the font you are using.