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

Compute glyph widths similarly in Type 42 as in Type 3 #7961

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 3 commits into from
Jan 29, 2017
Merged
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
Try to satisfy the style checker
  • Loading branch information
jkseppan committed Jan 27, 2017
commit f7d8162244b34a6615635f0ca25a0ed0e2b3ae7f
3 changes: 2 additions & 1 deletion 3 lib/matplotlib/backends/backend_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,8 @@ def embedTTFType42(font, characters, descriptor):
for c in characters:
ccode = c
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only suggestion I have is to clean this up; ccode can just be the name at the beginning of the loop.

gind = font.get_char_index(ccode)
glyph = font.load_char(ccode, flags=LOAD_NO_SCALE|LOAD_NO_HINTING)
glyph = font.load_char(ccode,
flags=LOAD_NO_SCALE | LOAD_NO_HINTING)
widths.append((ccode, cvt(glyph.horiAdvance)))
if ccode < 65536:
cid_to_gid_map[ccode] = unichr(gind)
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.