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

Skip to content

Commit 1d3effa

Browse files
author
Neil
committed
Add test for type-pun fix
1 parent e05c2fa commit 1d3effa

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

lib/matplotlib/tests/test_mathtext.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,11 @@ def test_mathtext_font_stixsans():
184184
fig.savefig('mathtext_font_stixsans')
185185

186186
matplotlib.rcParams['mathtext.fontset'] = 'cm'
187+
188+
def test_fontinfo():
189+
import matplotlib.font_manager as font_manager
190+
import matplotlib.ft2font as ft2font
191+
fontpath = font_manager.findfont("Bitstream Vera Sans")
192+
font = ft2font.FT2Font(fontpath)
193+
table = font.get_sfnt_table("head")
194+
assert table['version'] == (1, 0)

0 commit comments

Comments
 (0)