diff --git a/python/afdko/fdkutils.py b/python/afdko/fdkutils.py index 567178c18..2453e94ed 100644 --- a/python/afdko/fdkutils.py +++ b/python/afdko/fdkutils.py @@ -9,7 +9,7 @@ import subprocess import tempfile -__version__ = '1.3.6' +__version__ = '1.3.7' def validate_path(path_str): @@ -57,6 +57,8 @@ def get_font_format(font_file_path): return 'OTF' elif head in (b'\x00\x01\x00\x00', b'true'): return 'TTF' + elif head == b'ttcf': + return 'TTC' elif head[0:2] == b'\x01\x00': return 'CFF' elif head[0:2] == b'\x80\x01': diff --git a/tests/fdkutils_data/input/font.ttc b/tests/fdkutils_data/input/font.ttc new file mode 100644 index 000000000..e3e5047e1 Binary files /dev/null and b/tests/fdkutils_data/input/font.ttc differ diff --git a/tests/fdkutils_test.py b/tests/fdkutils_test.py index 954b1bc8d..21598c594 100644 --- a/tests/fdkutils_test.py +++ b/tests/fdkutils_test.py @@ -52,6 +52,7 @@ def test_get_resources_dir(): ('font.ufo', 'UFO'), ('font.otf', 'OTF'), ('font.ttf', 'TTF'), + ('font.ttc', 'TTC'), ('font.cff', 'CFF'), ('font.pfa', 'PFA'), ('font2.pfa', 'PFA'),