Unsolved How to access glyph after U+FFFF
-
I cannot not figure out how to access a TTF glyph after U+FFFF in QML/Javascript string, \u1abcd gives strange results (multi-glyphs).
Is something like \U10000 implemented in QML/Javascript ?
Is there documentation about this (other than http://doc.qt.io/qt-5/unicode.html) ?
-
@FabriceS Does this help: https://mathiasbynens.be/notes/javascript-escapes ?
-
@FabriceS You can also try setting the encoding of the source file to UTF-8 and copy or insert unicode characters directly. But what you mean by "TTF glyph"? You don't insert glyphs to strings.
-
I will test. I am using a TTF font to display icons (like FontAwesome) but glyphs were placed after U+FFFF.
-
You could also try writing a c++ helper class and use it from qml. In c++ you can use longer escape sequences (see e.g. http://stackoverflow.com/questions/2735101/number-of-digits-in-a-hex-escape-code-in-c-c and http://en.cppreference.com/w/cpp/language/escape).
-
The last resort is to create your own version of the font with FontForge (if the licence allows that). Copying from one codepoint to another is easy. I don't understand why the maker of the font has used such high codepoints while a private use area was available under FFFF for 6400 code points.