39 points · by pcr910303 · 7y ago · 15 comments
For almost five years, I was tech lead of the text stack in Android. There are a few things about the architecture not to like, but overall it is a world-class implementation - it has refinements like hyphenation and Knuth-Plass style paragraph layout, and of course emoji. It also had the benefit of Roozbeh Pournader's work for much of that time, so it gets Unicode and locales right. Among other things, I claim it does one of the best jobs on the "CJK problem" of any stack out there, using both font selection and the locl OpenType feature to adapt rendering for the preferred language(s). It's open source of course, but does suffer from thin public documentation.
Another good source is Chromium, which tends to be a bit more open, with discussions in the bug tracker and published documents, such as https://www.chromium.org/teams/layout-team/eliminating-simpl...
I'm interested in building the next stack in Rust, and have done some work in this direction. I'd love to see solid documentation as part of that effort, but of course writing takes time and effort, and the target audience is quite specialized.
What does Android infer the preference from? I’m using U.S. English as the UI language with input method set to combined Finnish and English (with Simplified Chinese, Traditional Chinese, Korean and Vietnamese also in my input method list) and using a Finnish SIM, and Android 9 seems to pick Simplified Chinese glyphs for me. (I’m not suggesting these signals should have another result. I’m just curious what signals are considered meaningful.)
Apps can set locale explicitly to override that, but almost none do. Probably the motivating example is a translation app, which can then render both, say, Chinese and Japanese correctly.
Input methods are technically a separate setting from your locale list, which is maybe confusing but that's the way it is.
I wish browsers implemented it, but it seems almost impossible.
I gave a talk at ATypI 4 years ago on Android typography, it might be interesting: https://youtu.be/L8LD0BM-Vjk
Do hyphens cause accessibility issues for users with low literacy?
I never got any negative feedback about accessibility problems. My guess is that since they are standard in print sources, they're manageable.
A web browser and a desktop interface (windowing,menus,mouse) sharing core glyph engine components sounds important, at least. In other news, the state of font availability, rendering fidelity and directional support are always going to be changing across the entire world, no?
Discussed at the time: https://news.ycombinator.com/item?id=1479870