Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/fontTools/ttLib/__init__.py: 81%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

16 statements  

1"""fontTools.ttLib -- a package for dealing with TrueType fonts.""" 

2 

3from fontTools.config import OPTIONS 

4from fontTools.misc.loggingTools import deprecateFunction 

5import logging 

6 

7 

8log = logging.getLogger(__name__) 

9 

10 

11OPTIMIZE_FONT_SPEED = OPTIONS["fontTools.ttLib:OPTIMIZE_FONT_SPEED"] 

12 

13 

14class TTLibError(Exception): 

15 pass 

16 

17 

18class TTLibFileIsCollectionError(TTLibError): 

19 pass 

20 

21 

22@deprecateFunction("use logging instead", category=DeprecationWarning) 

23def debugmsg(msg): 

24 import time 

25 

26 print(msg + time.strftime(" (%H:%M:%S)", time.localtime(time.time()))) 

27 

28 

29from fontTools.ttLib.ttFont import * 

30from fontTools.ttLib.ttCollection import TTCollection