8000 test ttc font loading using wqy-zenhei.ttc · luoq/matplotlib@3b078d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3b078d2

Browse files
author
Qiang Luo
committed
test ttc font loading using wqy-zenhei.ttc
1 parent d192d90 commit 3b078d2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/matplotlib/tests/test_font_manager.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,13 @@ def test_font_priority():
1717
font = findfont(
1818
FontProperties(family=["sans-serif"]))
1919
assert_equal(os.path.basename(font), 'cmmi10.ttf')
20+
21+
def test_font_ttc():
22+
# the font should be available(ttf-wqy-zenhei in ubuntu)
23+
font = findfont(
24+
FontProperties(family=["WenQuanYi Zen Hei"]))
25+
assert_equal(os.path.basename(font), 'wqy-zenhei.ttc')
26+
27+
if __name__=='__main__':
28+
import nose
29+
nose.runmodule(argv=['-s','--with-doctest'], exit=False)

0 commit comments

Comments
 (0)
0