Skip to content

Commit a60bbbc

Browse files
committed
revereted to manual array data fill in ft2font.as_array
svn path=/trunk/matplotlib/; revision=5495
1 parent 31a336d commit a60bbbc

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,14 @@ build_osx105:
3232
CFLAGS="-Os -arch i386 -arch ppc" LDFLAGS="-Os -arch i386 -arch ppc" python setup.py build
3333

3434

35+
jdh_doc_snapshot:
36+
svn up;\
37+
python setup.py install --prefix=~/dev;\
38+
cd doc;\
39+
rm -rf build;\
40+
python make.py html;\
41+
python make.py sf
42+
43+
44+
3545

src/ft2font.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,9 @@ FT2Image::py_as_array(const Py::Tuple & args) {
270270
dimensions[1] = get_width(); //numcols
271271

272272

273-
PyArrayObject *A = (PyArrayObject *) PyArray_SimpleNewFromData(2, dimensions, PyArray_UBYTE, _buffer);
273+
//PyArrayObject *A = (PyArrayObject *) PyArray_SimpleNewFromData(2, dimensions, PyArray_UBYTE, _buffer);
274+
274275

275-
/*
276276

277277
PyArrayObject *A = (PyArrayObject *) PyArray_FromDims(2, dimensions, PyArray_UBYTE);
278278

@@ -284,7 +284,7 @@ FT2Image::py_as_array(const Py::Tuple & args) {
284284
while (src != src_end) {
285285
*dst++ = *src++;
286286
}
287-
*/
287+
288288

289289
return Py::asObject((PyObject*)A);
290290
}

0 commit comments

Comments
 (0)