Merge "Rename DancingScript and CutiveMono" into sc-dev
This commit is contained in:
@@ -245,7 +245,7 @@
|
|||||||
<alias name="monaco" to="monospace" />
|
<alias name="monaco" to="monospace" />
|
||||||
|
|
||||||
<family name="serif-monospace">
|
<family name="serif-monospace">
|
||||||
<font weight="400" style="normal">CutiveMono.ttf</font>
|
<font weight="400" style="normal">CutiveMono-Regular.ttf</font>
|
||||||
</family>
|
</family>
|
||||||
<alias name="courier" to="serif-monospace" />
|
<alias name="courier" to="serif-monospace" />
|
||||||
<alias name="courier new" to="serif-monospace" />
|
<alias name="courier new" to="serif-monospace" />
|
||||||
@@ -255,7 +255,7 @@
|
|||||||
</family>
|
</family>
|
||||||
|
|
||||||
<family name="cursive">
|
<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>
|
<font weight="700" style="normal">DancingScript-Bold.ttf</font>
|
||||||
</family>
|
</family>
|
||||||
|
|
||||||
|
|||||||
@@ -11,12 +11,6 @@ from fontTools import ttLib
|
|||||||
|
|
||||||
EMOJI_VS = 0xFE0F
|
EMOJI_VS = 0xFE0F
|
||||||
|
|
||||||
#TODO(179952916): Rename CutiveMono and DancingScript
|
|
||||||
CANONICAL_NAME_EXCEPTION_LIST = [
|
|
||||||
'CutiveMono.ttf',
|
|
||||||
'DancingScript-Regular.ttf',
|
|
||||||
]
|
|
||||||
|
|
||||||
LANG_TO_SCRIPT = {
|
LANG_TO_SCRIPT = {
|
||||||
'as': 'Beng',
|
'as': 'Beng',
|
||||||
'be': 'Cyrl',
|
'be': 'Cyrl',
|
||||||
@@ -703,8 +697,6 @@ def getSuffix(font):
|
|||||||
def check_canonical_name():
|
def check_canonical_name():
|
||||||
for record in _all_fonts:
|
for record in _all_fonts:
|
||||||
file_name, index = record.font
|
file_name, index = record.font
|
||||||
if file_name in CANONICAL_NAME_EXCEPTION_LIST:
|
|
||||||
continue
|
|
||||||
|
|
||||||
if index and index != 0:
|
if index and index != 0:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user