Why does std::u32string exist?
-
-
Let's consider text rendering. The typical setup for (robust) text handling is Pango, or if you're a dumb masochist like me, FreeType + Harfbuzz + (Rendering Engine of Choice). Now, Pango and HB all have functions that take and work with UTF8, and by default generally are happy--
-
to appear to work with your UTF8. But you're actually paying a cost for that, because internally they work and behave like UTF32. For example, HB just does conversions on your behalf: https://github.com/harfbuzz/harfbuzz/blob/master/src/hb-buffer.cc#L1521 … If I have my text in UTF32 already, I can tell Harfbuzz not to --
- 5 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.