diff options
author | Roozbeh Pournader <roozbeh@google.com> | 2016-03-09 23:08:45 -0800 |
---|---|---|
committer | Roozbeh Pournader <roozbeh@google.com> | 2016-03-10 18:07:15 -0800 |
commit | 0e969e2c0ba9ad863c7fcfc3973a16b1b599e50a (patch) | |
tree | 9797be10b0a1ba96a3f87aef8426bea2582d6e59 /data/fonts | |
parent | 9bd17ce738ac7b99728c3aa672b5b9ce2b7a8863 (diff) |
Add test script for sanity of font fallback chain
Various tests have been added:
1. Availability of hyphens: Make sure that every font used for
rendering a language that is automatically hyphenated includes either
of Unicode hyphen characters U+2010 HYPHEN or U+002D HYPHEN-MINUS.
2. Range of values: Make sure that styles, weights, and styles belong
to certain limited sets.
Bug: 26187231
Bug: 21570828
Bug: 21815394
Change-Id: Ia63d63cc8da4f2d6bc81fe5619ccac6cfcd9a54e
Diffstat (limited to 'data/fonts')
-rw-r--r-- | data/fonts/Android.mk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/data/fonts/Android.mk b/data/fonts/Android.mk index de741b376d16..dc85046f518e 100644 --- a/data/fonts/Android.mk +++ b/data/fonts/Android.mk @@ -95,3 +95,14 @@ $(foreach f, $(font_src_files), $(call build-one-font-module, $(f))) build-one-font-module := font_src_files := + + +# Run sanity tests on fonts on checkbuild +checkbuild: fontchain_lint + +FONTCHAIN_LINTER := frameworks/base/tools/fonts/fontchain_lint.py + +.PHONY: fontchain_lint +fontchain_lint: $(FONTCHAIN_LINTER) $(TARGET_OUT)/etc/fonts.xml + PYTHONPATH=$$PYTHONPATH:external/fonttools/Lib \ + python $(FONTCHAIN_LINTER) $(TARGET_OUT)
\ No newline at end of file |