Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 35148a1

Browse files
committed
namelast was never set which results in no kerning Information found.
1 parent bd94c0d commit 35148a1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/matplotlib/afm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ def string_width_height(self, s):
348348
# find the min y
349349
thismin = b
350350
if thismin<miny: miny = thismin
351+
namelast = name
351352

352353
return totalw, maxy-miny
353354

@@ -385,6 +386,7 @@ def get_str_bbox_and_descent(self, s):
385386
# find the min y
386387
thismin = b
387388
if thismin<miny: miny = thismin
389+
namelast = name
388390

389391
return left, miny, totalw, maxy-miny, -miny
390392

0 commit comments

Comments
 (0)