Skip to content
Closed
Changes from all commits
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
8 changes: 7 additions & 1 deletion lib/matplotlib/textpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,13 @@ def get_glyphs_tex(self, prop, s, glyph_map=None,

font = get_font(font_bunch.filename)

for charmap_name, charmap_code in [("ADOBE_CUSTOM",
# The chmap codes are defined in freetype.h L603-786
# in freetype 2.6.1
# def FT_ENC_TAG(a, b, c, d):
# a, b, c, d = [ord(_) for _ in (a, b, c, d)]
# return (a << 24) | (b << 16) | (c << 8) | d
for charmap_name, charmap_code in [('unic', 1970170211),
("ADOBE_CUSTOM",
1094992451),
("ADOBE_STANDARD",
1094995778)]:
Expand Down