Rename DancingScript and CutiveMono
Bug: 179952916 Test: atest CtsTextTestCases CtsGraphicsTestCases Test: atest SystemFontsCanonicalNameTest Change-Id: Ia976e2182e5635d8431a84653908483de1c26ca3
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user