mirror of
https://github.com/googlefonts/noto-emoji.git
synced 2025-06-08 15:57:59 +00:00
import exceptions
This commit is contained in:
parent
cbe5031b4b
commit
73f559c94b
1 changed files with 13 additions and 5 deletions
|
@ -18,14 +18,22 @@
|
||||||
|
|
||||||
__author__ = "roozbeh@google.com (Roozbeh Pournader)"
|
__author__ = "roozbeh@google.com (Roozbeh Pournader)"
|
||||||
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from fontTools import agl
|
try:
|
||||||
from fontTools import ttLib
|
from fontTools import agl
|
||||||
from fontTools.ttLib.tables import otTables
|
except ImportError as er:
|
||||||
|
sys.exit("""Failed to import fontTools.
|
||||||
|
Please make sure 'pip install -r requirements.txt' runs succesfull""")
|
||||||
|
|
||||||
from nototools import font_data
|
from fontTools.ttLib.tables import otTables
|
||||||
|
from fontTools import ttLib
|
||||||
|
|
||||||
|
try:
|
||||||
|
from nototools import font_data
|
||||||
|
except ImportError as er:
|
||||||
|
sys.exit("""Failed to import nototools.
|
||||||
|
Please make sure 'pip install -r requirements.txt' runs succesfull""")
|
||||||
|
|
||||||
|
|
||||||
def create_script_list(script_tag='DFLT'):
|
def create_script_list(script_tag='DFLT'):
|
||||||
|
|
Loading…
Add table
Reference in a new issue