Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3b078d2

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

File tree

Expand file treeCollapse file tree

1 file changed

+10
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+10
-0
lines changed

‎lib/matplotlib/tests/test_font_manager.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_font_manager.py
+10Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.