summaryrefslogtreecommitdiff
path: root/tools/fonts
diff options
context:
space:
mode:
authorJungshik Shin <jungshik@google.com>2017-03-17 14:56:17 -0700
committerRoozbeh Pournader <roozbeh@google.com>2017-03-31 19:31:13 +0000
commit88b111401028c33f5d7621eec33c0bae3f5e4c9e (patch)
tree90082909b3efd2ea1a51288293a9b299681be22f /tools/fonts
parentf2cd4371fe4985ad23473ac7885754927a578ca2 (diff)
Use variable fonts for Noto Sans Khmer
Update fonts.xml to use NotoSansKhmer-VF.ttf. The weight range of Khmer is also extended to have 9 weight instances (three more than Roboto with 200, 600 and 800). The width range for Khmer is left alone partly because of an apparent lack of support in fonts.xml for non-normal width fallback fonts. Note that Noto Sans Khmer UI is left alone because of a baseline issue. BUG: 22667753 Test: See the QA instruction in comment 10 of the bug. Test: fontchain_lint Change-Id: Idf6d4fec86822663ac08feb8979edacbc6c709a0
Diffstat (limited to 'tools/fonts')
-rwxr-xr-xtools/fonts/fontchain_lint.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/fonts/fontchain_lint.py b/tools/fonts/fontchain_lint.py
index 36e0e1502066..bb11dabee8e6 100755
--- a/tools/fonts/fontchain_lint.py
+++ b/tools/fonts/fontchain_lint.py
@@ -234,7 +234,7 @@ def parse_fonts_xml(fonts_xml_path):
for child in family:
assert child.tag == 'font', (
'Unknown tag <%s>' % child.tag)
- font_file = child.text
+ font_file = child.text.rstrip()
weight = int(child.get('weight'))
assert weight % 100 == 0, (
'Font weight "%d" is not a multiple of 100.' % weight)