@@ -363,7 +363,6 @@ const char *PyFT2Font_init__doc__ =
363
363
364
364
static int PyFT2Font_init (PyFT2Font *self, PyObject *args, PyObject *kwds)
365
365
{
366
- // printf("PyFT2Font init!\n");
367
366
PyObject *filename = NULL , *open = NULL , *data = NULL , *fallback_list = NULL ;
368
367
FT_Open_Args open_args;
369
368
long hinting_factor = 8 ;
@@ -400,7 +399,6 @@ static int PyFT2Font_init(PyFT2Font *self, PyObject *args, PyObject *kwds)
400
399
401
400
Py_INCREF (fallback_list);
402
401
}
403
- // printf("Fallback SIZE: %lu \n", self->fallbacks.size());
404
402
405
403
if (PyBytes_Check (filename) || PyUnicode_Check (filename)) {
406
404
if (!(open = PyDict_GetItemString (PyEval_GetBuiltins (), " open" )) // Borrowed reference.
@@ -464,7 +462,6 @@ static PyObject *PyFT2Font_set_size(PyFT2Font *self, PyObject *args, PyObject *k
464
462
{
465
463
double ptsize;
466
464
double dpi;
467
- // printf("PyFT, set_size called!\n");
468
465
469
466
if (!PyArg_ParseTuple (args, " dd:set_size" , &ptsize, &dpi)) {
470
467
return NULL ;
@@ -781,7 +778,6 @@ static PyObject *PyFT2Font_load_char(PyFT2Font *self, PyObject *args, PyObject *
781
778
782
779
FT2Font *ft_object = NULL ;
783
780
CALL_CPP (" load_char" , (self->x ->load_char (charcode, flags, ft_object, (bool )fallback)));
784
- // printf("Char %ld loaded to: %lu\n", charcode, ft_object->get_face()->num_glyphs);
785
781
786
782
return PyGlyph_new (self->x , ft_object);
787
783
}
@@ -818,14 +814,8 @@ static PyObject *PyFT2Font_load_glyph(PyFT2Font *self, PyObject *args, PyObject
818
814
return NULL ;
819
815
}
820
816
821
- // if (!PyArg_ParseTupleAndKeywords(
822
- // args, kwds, "I|i$p:load_glyph", (char **)names, &glyph_index, &flags, &fallback)) {
823
- // return NULL;
824
- // }
825
-
826
817
FT2Font *ft_object = NULL ;
827
818
CALL_CPP (" load_glyph" , (self->x ->load_glyph (glyph_index, flags, ft_object, (bool )fallback)));
828
- // printf("FT2Font for load_glyph: %lu\n", ft_object->get_face()->num_glyphs);
829
819
830
820
return PyGlyph_new (self->x , ft_object);
831
821
}
@@ -1024,20 +1014,12 @@ static PyObject *PyFT2Font_get_char_index(PyFT2Font *self, PyObject *args, PyObj
1024
1014
FT_UInt index;
1025
1015
FT_ULong ccode;
1026
1016
int fallback = 1 ;
1027
- // printf("Inside get_char_index!\n");
1028
1017
1029
1018
if (!PyArg_ParseTuple (args, " k:get_char_index" , &ccode)) {
1030
1019
return NULL ;
1031
1020
}
1032
1021
1033
- // const char *names[] = { "ccode", "fallback", NULL };
1034
- // if (!PyArg_ParseTupleAndKeywords(
1035
- // args, kwds, "k|$p:get_char_index", (char **)names, &ccode, &fallback)) {
1036
- // return NULL;
1037
- // }
1038
-
1039
1022
CALL_CPP (" get_char_index" , index = self->x ->get_char_index (ccode, (bool )fallback));
1040
- // printf("FT2Font for %ld get_char_index: %lu\n", ccode, ft_object->get_face()->num_glyphs);
1041
1023
1042
1024
return PyLong_FromLong (index);
1043
1025
}
0 commit comments