Skip to content

Commit 5eb0867

Browse files
committed
Bugfixes found debugging subsetting
1 parent 03053e9 commit 5eb0867

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/freetypy/util.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ def bitmap_to_ascii(a):
5858

5959
lines = []
6060
for row in a.to_list():
61+
line = []
6162
for col in row:
6263
col = int(float(col) / 255. * 4.)
6364
c = shades[col]
64-
lines.append(c)
65+
line.append(c)
66+
lines.append(''.join(line))
6567
return '\n'.join(lines)

src/outline.c

+1
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,7 @@ Py_Outline_to_string(Py_Outline* self, PyObject* args, PyObject* kwds)
863863
"move_command", "line_command", "cubic_command", "conic_command",
864864
"prefix", NULL};
865865

866+
data.prefix = 0;
866867
data.conic_command = NULL;
867868

868869
if (!PyArg_ParseTupleAndKeywords(

0 commit comments

Comments
 (0)