- Home /
Custom fonts and extended ASCII
My Overall question- do custom fonts support extended characters?
His is why I ask I have a bitmap font (that i made myself - I can guarantee the uv etc math is correct Because if I reasign the character to between 33-126 it shows up just fine)
ASCII 32-126 work perfectly
BUT if i assign a char to 0-31 they don't show up
AND 128+ is just 'random'
Ex. only 45 of the 128-255 show up - NONE of those 45 are mapped to the correct char
[ASCII index, The REAL ASCII char it is mapped too]
[244,147]
[243,162]
[242,149]
[241,164]
[239,139]
[238,140]
[237,161]
[236,141]
[235,137]
[234,136]
[233,130]
[232,138]
[231,135]
[230,145]
[229,134]
[228,132]
[226,131]
[225,160]
[224,133]
[223,225]
[220,154]
[214,153]
[209,165]
[201,144]
[199,128]
[198,146]
[197,143]
[196,142]
[191,168]
[189,171]
[188,172]
[187,175]
[186,167]
[183,250]
[181,230]
[178,253]
[177,241]
[176,248]
[172,170]
[171,174]
[170,166]
[165,157]
[163,156]
[162,155]
[161,173]
Answer by GreatestBear · Aug 27, 2018 at 06:18 AM
Just suffered through this myself. Unity seems to assign extended ASCII characters using the ISO/IEC 8859-1 standard.
É = 201 (dec)
é = 233 (dec)
Ó = 211 (dec)
ó = 243 (dec)
And so on. See here: https://en.wikipedia.org/wiki/ISO/IEC_8859-1
Your answer
Follow this Question
Related Questions
How to find a font via script? 2 Answers
Is there a way to measure the pixel with/height of a string with a given font? 2 Answers
Why aren't asian fonts rendering dynamically? 0 Answers
Getting pixel perfect text with either text meshes or GUI Text on a worldspace canvas 0 Answers
Accessing hidden font parameters for Custom Editor 0 Answers