-
-
Notifications
You must be signed in to change notification settings - Fork 47
Bugfix of baseline_chars (missing comma) #87
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| <?xml version="1.0"?> | ||
| <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | ||
| <fontconfig> | ||
| <dir>../font/</dir> | ||
| <dir prefix="cwd">../font/</dir> | ||
| <cachedir>../.font-cache</cachedir> | ||
| <config></config> | ||
| </fontconfig> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,7 @@ | |
| import matplotlib.patches as mpatches | ||
| from matplotlib.font_manager import FontProperties | ||
| from fontTools.ttLib import TTFont | ||
| from PIL import Image | ||
|
|
||
| HERE = os.path.dirname(os.path.abspath(__file__)) | ||
| OTF = os.path.join(HERE, '../font/xkcd-script.otf') | ||
|
|
@@ -245,5 +246,6 @@ def render_block(label, rows): | |
| fig = render_block(label, rows) | ||
| out = os.path.join(OUTDIR, f'charmap_{slugify(label)}.png') | ||
| fig.savefig(out, dpi=150, bbox_inches='tight', facecolor=fig.get_facecolor()) | ||
| Image.open(out).save(out) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Previously there was the matplotlib version in the metadata, which was a source of non-reproducible output (the version changed recently). Here, I drop that metadata. |
||
| plt.close(fig) | ||
| print(f'charmap → {out}') | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A definite improvement! 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One little character missing has quite the effect... !