Improve default fonts and support displaying all unicode characters
Roboto, Roboto Mono, and the Noto Sans fonts should be embedded into apps by default. Roboto and Roboto Mono look better than Go and Go Mono and are the default on Android, ChromeOS, and other Google products. Noto Sans supports many more characters than default fonts and will help resolve issues like goki/gi#484 and goki/girl#2. The one thing that needs to be figured out is a way to optimize and only embed the Noto fonts that are needed, as all of them for every script would take a lot of space.
Roboto and Roboto Mono are now used as the default fonts, but we still need to support Noto fonts, likely through a separate fonts repository from which people can underscore import specific fonts. For dynamic translation, we will need to figure out a better approach, but that is beyond the scope of v2 (see #9).
We also need to implement support for RTL and vertical text.
Roboto and Roboto Mono are now used as the default fonts, but we still need to support Noto fonts, likely through a separate fonts repository from which people can underscore import specific fonts. For dynamic translation, we will need to figure out a better approach, but that is beyond the scope of v2 (see #9).
I think it is possible to return fonts in the font repository by setting the body language, for example, when we set language="Chinese" after body instantiation, loading Chinese fonts is the default
This should also fix the remaining text related memory leaks mentioned in #1430.
We implemented support for international fonts and emojis using go-text in #1457 (see #1525 for details). The default fonts are now Noto Sans and Roboto Mono, and system fonts are used for rendering international characters and emojis. Please let me know if you have any issues.