8000 Merge pull request #3671 from jenshnielsen/fix_3669 · matplotlib/matplotlib@4aa6b7e · GitHub
[go: up one dir, main page]

Skip to content

Commit 4aa6b7e

Browse files
committed
Merge pull request #3671 from jenshnielsen/fix_3669
fix for #3669 Font issue without PyCXX
2 parents c299457 + ff32ee5 commit 4aa6b7e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ft2font_wrapper.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,9 +1309,15 @@ static PyObject *PyFT2Font_get_sfnt_table(PyFT2Font *self, PyObject *args, PyObj
13091309
t->maxMemType1);
13101310
}
13111311
case 6: {
1312+
#if PY3K
1313+
char pclt_dict[] =
1314+
"{s:(h,h), s:k, s:H, s:H, s:H, s:H, s:H, s:H, s:s, s:y, s:b, s:b, "
1315+
"s:b}";
1316+
#else
13121317
char pclt_dict[] =
13131318
"{s:(h,h), s:k, s:H, s:H, s:H, s:H, s:H, s:H, s:s, s:s, s:b, s:b, "
13141319
"s:b}";
1320+
#endif
13151321
TT_PCLT *t = (TT_PCLT *)table;
13161322
return Py_BuildValue(pclt_dict,
13171323
"version",

0 commit comments

Comments
 (0)
0