|
9 | 9 | __doc__ = """ |
10 | 10 | buildAll v1.2 - Dec 01 2019 |
11 | 11 |
|
12 | | -This script takes a path to a folder as input, finds all the Type 1 fonts |
13 | | -(.pfa files) or UFO fonts inside that folder and its subdirectories, and |
14 | | -builds the OpenType (.otf) fonts using the FDK's makeotf tool. If a path is |
15 | | -not provided, the script will use the current path as the top-most directory. |
16 | | -The script ignores MM PFA fonts, usually named 'mmfont.pfa'. |
| 12 | +This script takes a path to a folder as input, finds all UFO files or Type 1 |
| 13 | +fonts (.pfa files) inside that folder and its subdirectories, and builds |
| 14 | +OpenType (.otf) fonts using the FDK's makeotf tool. |
| 15 | +If a path is not provided, the script will use the current path as the topmost |
| 16 | +directory. |
| 17 | +The script ignores Multiple Master PFA fonts, usually named 'mmfont.pfa'. |
17 | 18 | The Type 1 fonts can also be in plain text format (.txt) where the Private |
18 | | -and CharStrings dictionaries are not encrypted. These files can be obtained |
| 19 | +and CharStrings dictionaries are not encrypted. These files can be created |
19 | 20 | by using the FDK's detype1 tool. |
20 | 21 |
|
21 | 22 | ================================================== |
@@ -106,12 +107,13 @@ def run(): |
106 | 107 | return |
107 | 108 |
|
108 | 109 | t2 = time.time() |
109 | | - elapsedSeconds = t2-t1 |
| 110 | + elapsedSeconds = t2 - t1 |
| 111 | + elapsedMinutes = elapsedSeconds / 60 |
110 | 112 |
|
111 | | - if (elapsedSeconds/60) < 1: |
112 | | - print('Completed in %.1f seconds.' % elapsedSeconds) |
113 | | - else: |
114 | | - print('Completed in %.1f minutes.' % (elapsedSeconds/60)) |
| 113 | + if elapsedMinutes < 1: |
| 114 | + print('Completed in %.1f seconds.' % elapsedSeconds) |
| 115 | + else: |
| 116 | + print('Completed in %.1f minutes.' % elapsedMinutes) |
115 | 117 |
|
116 | 118 |
|
117 | 119 | if __name__=='__main__': |
|
0 commit comments