Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the code to display a five digit Unicode based Egyptian hieroglyph font on iOS?

Code on StackOverflow and other sites suggest this for displaying unicode on iOS:

[view1 setText:@"\uF300"];

This works for most unicode characters, however, this is failing for an Egyptian hieroglyphic unicode font (wait for large font to load).

The hieroglyphic unicode has one additional digit (i.e. "\uF3001" instead of "\uF300"). As a result, the wrong character is displayed and the "1" is left trailing.

It is clear that iOS can display the hieroglyphic font. For example, if you cut and paste this glyph (󳑡) into a setText statement, after importing the TTF, the glyph can be seen on the iOS screen.

So the question is, how does one display a unicode character in a setText statement using a unicode font that needs five digits instead of four (i.e. "\uF3001")?

like image 967
Praxiteles Avatar asked Apr 26 '12 08:04

Praxiteles


1 Answers

Actually, as long as you use a capital 'U' you can specify up to 8 digits like: "\U000F3001".

like image 193
matt bezark Avatar answered Oct 10 '22 01:10

matt bezark