File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 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.18.1 "
9
+ script_version = "4.18.2 "
10
10
11
11
version = "3.3.0"
12
12
projectName = "Nerd Fonts"
@@ -1371,6 +1371,15 @@ class font_patcher:
1371
1371
logger .debug ("Final font cell dimensions %d w x %d h%s" ,
1372
1372
self .font_dim ['width' ], self .font_dim ['height' ],
1373
1373
' (with icon cell {} h)' .format (int (self .font_dim ['iconheight' ])) if self .font_dim ['iconheight' ] != self .font_dim ['height' ] else '' )
1374
+ try :
1375
+ x_bb = self .sourceFont ['x' ].boundingBox ();
1376
+ X_bb = self .sourceFont ['X' ].boundingBox ();
1377
+ logger .debug ("Center x-height/cell/capitals %d/%d/%d" ,
1378
+ (x_bb [3 ] - x_bb [1 ]) / 2 + x_bb [1 ],
1379
+ (self .font_dim ['ymax' ] - self .font_dim ['ymin' ]) / 2 + self .font_dim ['ymin' ],
1380
+ (X_bb [3 ] - X_bb [1 ]) / 2 + X_bb [1 ])
1381
+ except :
1382
+ pass
1374
1383
1375
1384
self .xavgwidth .append (self .args .xavgwidth )
1376
1385
if isinstance (self .xavgwidth [- 1 ], int ) and self .xavgwidth [- 1 ] == 0 :
You can’t perform that action at this time.
0 commit comments