6
6
from __future__ import absolute_import , print_function , unicode_literals
7
7
8
8
# Change the script version when you edit this script:
9
- script_version = "4.14.2 "
9
+ script_version = "4.14.3 "
10
10
11
11
version = "3.2.1"
12
12
projectName = "Nerd Fonts"
@@ -429,7 +429,7 @@ class font_patcher:
429
429
sanitize_filename (self .args .outputdir , True ),
430
430
sanitize_filename (create_filename (sourceFonts )) + ".ttc" ))
431
431
sourceFonts [0 ].generateTtc (outfile , sourceFonts [1 :], flags = gen_flags , layer = layer )
432
- message = " Generated {} fonts\n \===> '{}'" .format (len (sourceFonts ), outfile )
432
+ message = " Generated {} fonts\n \\ ===> '{}'" .format (len (sourceFonts ), outfile )
433
433
else :
434
434
fontname = create_filename (sourceFonts )
435
435
if not fontname :
@@ -445,10 +445,10 @@ class font_patcher:
445
445
logger .debug ("=====> Filename '%s'" , outfile )
446
446
return
447
447
sourceFont .generate (outfile , bitmap_type = bitmaps , flags = gen_flags )
448
- message = " {}\n \===> '{}'" .format (sourceFont .fullname , outfile )
448
+ message = " {}\n \\ ===> '{}'" .format (sourceFont .fullname , outfile )
449
449
450
450
# Adjust flags that can not be changed via fontforge
451
- if re .search (' \\ .[ot]tf$' , self .args .font , re .IGNORECASE ) and re .search (' \ \ .[ot]tf$' , outfile , re .IGNORECASE ):
451
+ if re .search (r'\ .[ot]tf$' , self .args .font , re .IGNORECASE ) and re .search (r' \.[ot]tf$' , outfile , re .IGNORECASE ):
452
452
if not os .path .isfile (outfile ) or os .path .getsize (outfile ) < 1 :
453
453
logger .critical ("Something went wrong and Fontforge did not generate the new font - look for messages above" )
454
454
sys .exit (1 )
@@ -2062,7 +2062,7 @@ def setup_arguments():
2062
2062
args .extension = os .path .splitext (args .font )[1 ]
2063
2063
else :
2064
2064
args .extension = '.' + args .extension
2065
- if re .match (" \.ttc$" , args .extension , re .IGNORECASE ):
2065
+ if re .match (r' \.ttc$' , args .extension , re .IGNORECASE ):
2066
2066
if not is_ttc :
2067
2067
logger .critical ("Can not create True Type Collections from single font files" )
2068
2068
sys .exit (1 )
0 commit comments