Documentation
¶
Overview ¶
Command android-fonts is a development example (step 25.10): a Material page with a line of text in each of several scripts (Latin, Greek, Cyrillic, Arabic, Hebrew, Devanagari, Thai, Chinese, Japanese, Korean and emoji) in the system's fonts. At the start it also asks the system font matcher of the platform (the one the engine uses, internal/engine.SystemFontMatcher) for a font with a glyph for every character of every line, and logs what it found, so that the device tests can check that no character is left to a missing-glyph box. It may use internal packages (it is a development example).
GLUTTER_DEMO is a BCP 47 language tag (for instance ja-JP): the locale of the app. The default is the system's.
Run it on a device or the emulator with:
go run ./cmd/glutter-android run ./examples/dev/android-fonts go run ./cmd/glutter-android run -env GLUTTER_DEMO=ja-JP ./examples/dev/android-fonts