2021-11-18 13:06:02 +00:00
|
|
|
"""fontTools.ttLib -- a package for dealing with TrueType fonts."""
|
1999-12-16 21:34:53 +00:00
|
|
|
|
2018-01-23 16:03:45 -08:00
|
|
|
from fontTools.misc.loggingTools import deprecateFunction
|
2016-01-24 14:25:50 +00:00
|
|
|
import logging
|
2003-08-28 18:23:43 +00:00
|
|
|
|
2002-05-02 15:23:25 +00:00
|
|
|
|
2016-01-24 14:25:50 +00:00
|
|
|
log = logging.getLogger(__name__)
|
|
|
|
|
2022-12-13 11:26:36 +00:00
|
|
|
|
1999-12-16 21:34:53 +00:00
|
|
|
class TTLibError(Exception):
|
|
|
|
pass
|
2022-12-13 11:26:36 +00:00
|
|
|
|
|
|
|
|
2022-10-28 16:31:47 -06:00
|
|
|
class TTLibFileIsCollectionError(TTLibError):
|
|
|
|
pass
|
2022-12-13 11:26:36 +00:00
|
|
|
|
1999-12-16 21:34:53 +00:00
|
|
|
|
2016-01-24 14:25:50 +00:00
|
|
|
@deprecateFunction("use logging instead", category=DeprecationWarning)
|
1999-12-16 21:34:53 +00:00
|
|
|
def debugmsg(msg):
|
|
|
|
import time
|
2022-12-13 11:26:36 +00:00
|
|
|
|
2013-11-27 04:57:33 -05:00
|
|
|
print(msg + time.strftime(" (%H:%M:%S)", time.localtime(time.time())))
|
2022-12-13 11:26:36 +00:00
|
|
|
|
1999-12-16 21:34:53 +00:00
|
|
|
|
2018-01-23 16:03:45 -08:00
|
|
|
from fontTools.ttLib.ttFont import *
|
2018-01-23 15:39:38 -08:00
|
|
|
from fontTools.ttLib.ttCollection import TTCollection
|