Skip to content

Fix TrueType to Type-3 font conversion #905

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 31, 2012
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add a test case for ttconv
If I enable svg, I see artifacts in the resulting file that look
like there are similar bugs as #903 in svg.
  • Loading branch information
jkseppan authored and mdboom committed May 30, 2012
commit 253d2be79e520a00a8290be7909540ec54d9b4f9
Binary file added lib/matplotlib/mpl-data/fonts/ttf/mpltest.ttf
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions lib/matplotlib/tests/test_ttconv.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import matplotlib
from matplotlib.testing.decorators import image_comparison
import matplotlib.pyplot as plt

@image_comparison(baseline_images=["truetype-conversion"],
extensions=["pdf", "png"])
def test_truetype_conversion():
matplotlib.rcParams['pdf.fonttype'] = 3
fig = plt.figure()
ax = fig.add_subplot(111)
ax.text(0, 0, "ABCDE", name="mpltest", fontsize=80)
ax.set_xticks([])
ax.set_yticks([])