Skip to content

Commit 24e4a32

Browse files
committed
fixed a bug in call to font.get_kerning()
svn path=/trunk/matplotlib/; revision=1275
1 parent 04f08ab commit 24e4a32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/font_indexing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
"""
66
import matplotlib
7-
from matplotlib.ft2font import FT2Font
7+
from matplotlib.ft2font import FT2Font, KERNING_DEFAULT
88

99

1010

@@ -33,5 +33,5 @@
3333
glyph = font.load_char(code)
3434
print glyph.bbox
3535

36-
print 'AV', font.get_kerning(glyphd['A'], glyphd['V'])/64.0
37-
print 'AA', font.get_kerning(glyphd['A'], glyphd['A'])/64.0
36+
print 'AV', font.get_kerning(glyphd['A'], glyphd['V'], KERNING_DEFAULT)/64.0
37+
print 'AA', font.get_kerning(glyphd['A'], glyphd['A'], KERNING_DEFAULT)/64.0

0 commit comments

Comments
 (0)