Text contains characters that cannot be resolved by this spritefont.

Hi,

I’m trying to insert multiplication character in my game screen. I get this from a json file.
{
“Q”: “5×7”,
“A1”: “13”,
“A2”: “14”,
“A3”: “12”,
“A4”: “22”,
“CA”: 3
},

This post describe how to add character region. But i have no idea how to add math characters here.

Any idea?

Thanks

Check the Unicode values for the characters you want to include and add a character region (or multiple if necessary) that contains them. For the multiplication sign it’s 215. You can find these values just by googling them. Make sure you get the decimal values. Good luck!

1 Like

Hi, Thanks for the reply
It is working now :slight_smile:

1 Like

@bunnyboonet Hello ! I have some problem to read a Json file from Android ( I already do it on pc, but it doesn’t work on Anroid ). Can you please explain to me ( and share a bit of code) how do you read a Json file from Android. Thank, it will be very helpfull for me :slight_smile:

Here the code for read json file

public void ReadQuestions(int worksheet)
{
using (var stream = TitleContainer.OpenStream(“Content/Papers/p” + worksheet + “.json”))
using (var reader = new StreamReader(stream, Encoding.Unicode))
{
var json = reader.ReadToEnd();
var obj = new { Questions = new List() };
var result = JsonConvert.DeserializeAnonymousType(json, obj);

            _questionList = new ObservableCollection<GanithaPoddaQuestion>(result.Questions);
        }

    }

Thank you ! It will be useful :slight_smile: