diff options
| author | 2021-02-25 18:29:31 -0800 | |
|---|---|---|
| committer | 2021-02-25 18:29:31 -0800 | |
| commit | f31ac94a03092d33c86d3edd8fd9d93dd87e4e8a (patch) | |
| tree | 6b01b18b8ad17bd8d755f8a2b199d44510f19645 | |
| parent | 2f0674a7fa6c54d57c231467e0a88232669bad2a (diff) | |
Rename DancingScript and CutiveMono
Bug: 179952916
Test: atest CtsTextTestCases CtsGraphicsTestCases
Test: atest SystemFontsCanonicalNameTest
Change-Id: Ia976e2182e5635d8431a84653908483de1c26ca3
| -rw-r--r-- | data/fonts/fonts.xml | 4 | ||||
| -rwxr-xr-x | tools/fonts/fontchain_linter.py | 8 |
2 files changed, 2 insertions, 10 deletions
diff --git a/data/fonts/fonts.xml b/data/fonts/fonts.xml index 4f188cc03282..66b8eaec4bcf 100644 --- a/data/fonts/fonts.xml +++ b/data/fonts/fonts.xml @@ -245,7 +245,7 @@ <alias name="monaco" to="monospace" /> <family name="serif-monospace"> - <font weight="400" style="normal">CutiveMono.ttf</font> + <font weight="400" style="normal">CutiveMono-Regular.ttf</font> </family> <alias name="courier" to="serif-monospace" /> <alias name="courier new" to="serif-monospace" /> @@ -255,7 +255,7 @@ </family> <family name="cursive"> - <font weight="400" style="normal">DancingScript-Regular.ttf</font> + <font weight="400" style="normal">DancingScript.ttf</font> <font weight="700" style="normal">DancingScript-Bold.ttf</font> </family> diff --git a/tools/fonts/fontchain_linter.py b/tools/fonts/fontchain_linter.py index ebc0ec1640f5..e775e1adb04e 100755 --- a/tools/fonts/fontchain_linter.py +++ b/tools/fonts/fontchain_linter.py @@ -11,12 +11,6 @@ from fontTools import ttLib EMOJI_VS = 0xFE0F -#TODO(179952916): Rename CutiveMono and DancingScript -CANONICAL_NAME_EXCEPTION_LIST = [ - 'CutiveMono.ttf', - 'DancingScript-Regular.ttf', -] - LANG_TO_SCRIPT = { 'as': 'Beng', 'be': 'Cyrl', @@ -703,8 +697,6 @@ def getSuffix(font): def check_canonical_name(): for record in _all_fonts: file_name, index = record.font - if file_name in CANONICAL_NAME_EXCEPTION_LIST: - continue if index and index != 0: continue |