@@ -66,7 +66,7 @@ const char *PyFT2Image_draw_rect__doc__ =
6666 " --\n\n "
6767 " Draw an empty rectangle to the image.\n " ;
6868
69- static PyObject *PyFT2Image_draw_rect (PyFT2Image *self, PyObject *args, PyObject *kwds)
69+ static PyObject *PyFT2Image_draw_rect (PyFT2Image *self, PyObject *args
7070{
7171 double x0, y0, x1, y1;
7272
@@ -84,7 +84,7 @@ const char *PyFT2Image_draw_rect_filled__doc__ =
8484 " --\n\n "
8585 " Draw a filled rectangle to the image.\n " ;
8686
87- static PyObject *PyFT2Image_draw_rect_filled (PyFT2Image *self, PyObject *args, PyObject *kwds )
87+ static PyObject *PyFT2Image_draw_rect_filled (PyFT2Image *self, PyObject *args)
8888{
8989 double x0, y0, x1, y1;
9090
@@ -425,7 +425,7 @@ const char *PyFT2Font_clear__doc__ =
425425 " --\n\n "
426426 " Clear all the glyphs, reset for a new call to `.set_text`.\n " ;
427427
428- static PyObject *PyFT2Font_clear (PyFT2Font *self, PyObject *args, PyObject *kwds )
428+ static PyObject *PyFT2Font_clear (PyFT2Font *self, PyObject *args)
429429{
430430 CALL_CPP (" clear" , (self->x ->clear ()));
431431
@@ -437,7 +437,7 @@ const char *PyFT2Font_set_size__doc__ =
437437 " --\n\n "
438438 " Set the point size and dpi of the text.\n " ;
439439
440- static PyObject *PyFT2Font_set_size (PyFT2Font *self, PyObject *args, PyObject *kwds )
440+ static PyObject *PyFT2Font_set_size (PyFT2Font *self, PyObject *args)
441441{
442442 double ptsize;
443443 double dpi;
@@ -456,7 +456,7 @@ const char *PyFT2Font_set_charmap__doc__ =
456456 " --\n\n "
457457 " Make the i-th charmap current.\n " ;
458458
459- static PyObject *PyFT2Font_set_charmap (PyFT2Font *self, PyObject *args, PyObject *kwds )
459+ static PyObject *PyFT2Font_set_charmap (PyFT2Font *self, PyObject *args)
460460{
461461 int i;
462462
@@ -474,7 +474,7 @@ const char *PyFT2Font_select_charmap__doc__ =
474474 " --\n\n "
475475 " Select a charmap by its FT_Encoding number.\n " ;
476476
477- static PyObject *PyFT2Font_select_charmap (PyFT2Font *self, PyObject *args, PyObject *kwds )
477+ static PyObject *PyFT2Font_select_charmap (PyFT2Font *self, PyObject *args)
478478{
479479 unsigned long i;
480480
@@ -496,7 +496,7 @@ const char *PyFT2Font_get_kerning__doc__ =
496496 " KERNING_UNFITTED - Return scaled but un-grid-fitted kerning distances\n "
497497 " KERNING_UNSCALED - Return the kerning vector in original font units\n " ;
498498
499- static PyObject *PyFT2Font_get_kerning (PyFT2Font *self, PyObject *args, PyObject *kwds )
499+ static PyObject *PyFT2Font_get_kerning (PyFT2Font *self, PyObject *args)
500500{
501501 FT_UInt left, right, mode;
502502 int result;
@@ -587,7 +587,7 @@ const char *PyFT2Font_get_num_glyphs__doc__ =
587587 " --\n\n "
588588 " Return the number of loaded glyphs.\n " ;
589589
590- static PyObject *PyFT2Font_get_num_glyphs (PyFT2Font *self, PyObject *args, PyObject *kwds )
590+ static PyObject *PyFT2Font_get_num_glyphs (PyFT2Font *self, PyObject *args)
591591{
592592 return PyLong_FromLong (self->x ->get_num_glyphs ());
593593}
@@ -677,7 +677,7 @@ const char *PyFT2Font_get_width_height__doc__ =
677677 " The rotation of the string is accounted for. To get width and height\n "
678678 " in pixels, divide these values by 64.\n " ;
679679
680- static PyObject *PyFT2Font_get_width_height (PyFT2Font *self, PyObject *args, PyObject *kwds )
680+ static PyObject *PyFT2Font_get_width_height (PyFT2Font *self, PyObject *args)
681681{
682682 long width, height;
683683
@@ -692,7 +692,7 @@ const char *PyFT2Font_get_bitmap_offset__doc__ =
692692 " Get the (x, y) offset in 26.6 subpixels for the bitmap if ink hangs left or below (0, 0).\n "
693693 " Since Matplotlib only supports left-to-right text, y is always 0.\n " ;
694694
695- static PyObject *PyFT2Font_get_bitmap_offset (PyFT2Font *self, PyObject *args, PyObject *kwds )
695+ static PyObject *PyFT2Font_get_bitmap_offset (PyFT2Font *self, PyObject *args)
696696{
697697 long x, y;
698698
@@ -708,7 +708,7 @@ const char *PyFT2Font_get_descent__doc__ =
708708 " The rotation of the string is accounted for. To get the descent\n "
709709 " in pixels, divide this value by 64.\n " ;
710710
711- static PyObject *PyFT2Font_get_descent (PyFT2Font *self, PyObject *args, PyObject *kwds )
711+ static PyObject *PyFT2Font_get_descent (PyFT2Font *self, PyObject *args)
712712{
713713 long descent;
714714
@@ -809,7 +809,7 @@ const char *PyFT2Font_get_glyph_name__doc__ =
809809 " names (per FT_FACE_FLAG_GLYPH_NAMES), this returns a made-up name which\n "
810810 " does *not* roundtrip through `.get_name_index`.\n " ;
811811
812- static PyObject *PyFT2Font_get_glyph_name (PyFT2Font *self, PyObject *args, PyObject *kwds )
812+ static PyObject *PyFT2Font_get_glyph_name (PyFT2Font *self, PyObject *args)
813813{
814814 unsigned int glyph_number;
815815 char buffer[128 ];
@@ -826,7 +826,7 @@ const char *PyFT2Font_get_charmap__doc__ =
826826 " Return a dict that maps the character codes of the selected charmap\n "
827827 " (Unicode by default) to their corresponding glyph indices.\n " ;
828828
829- static PyObject *PyFT2Font_get_charmap (PyFT2Font *self, PyObject *args, PyObject *kwds )
829+ static PyObject *PyFT2Font_get_charmap (PyFT2Font *self, PyObject *args)
830830{
831831 PyObject *charmap;
832832 if (!(charmap = PyDict_New ())) {
@@ -856,7 +856,7 @@ const char *PyFT2Font_get_char_index__doc__ =
856856 " --\n\n "
857857 " Return the glyph index corresponding to a character *codepoint*.\n " ;
858858
859- static PyObject *PyFT2Font_get_char_index (PyFT2Font *self, PyObject *args, PyObject *kwds )
859+ static PyObject *PyFT2Font_get_char_index (PyFT2Font *self, PyObject *args)
860860{
861861 FT_UInt index;
862862 FT_ULong ccode;
@@ -878,7 +878,7 @@ const char *PyFT2Font_get_sfnt__doc__ =
878878 " (platform-ID, ISO-encoding-scheme, language-code, and description)\n "
879879 " tuples.\n " ;
880880
881- static PyObject *PyFT2Font_get_sfnt (PyFT2Font *self, PyObject *args, PyObject *kwds )
881+ static PyObject *PyFT2Font_get_sfnt (PyFT2Font *self, PyObject *args)
882882{
883883 PyObject *names;
884884
@@ -938,7 +938,7 @@ const char *PyFT2Font_get_name_index__doc__ =
938938 " Return the glyph index of a given glyph *name*.\n "
939939 " The glyph index 0 means 'undefined character code'.\n " ;
940940
941- static PyObject *PyFT2Font_get_name_index (PyFT2Font *self, PyObject *args, PyObject *kwds )
941+ static PyObject *PyFT2Font_get_name_index (PyFT2Font *self, PyObject *args)
942942{
943943 char *glyphname;
944944 long name_index;
@@ -954,7 +954,7 @@ const char *PyFT2Font_get_ps_font_info__doc__ =
954954 " --\n\n "
955955 " Return the information in the PS Font Info structure.\n " ;
956956
957- static PyObject *PyFT2Font_get_ps_font_info (PyFT2Font *self, PyObject *args, PyObject *kwds )
957+ static PyObject *PyFT2Font_get_ps_font_info (PyFT2Font *self, PyObject *args)
958958{
959959 PS_FontInfoRec fontinfo;
960960
@@ -982,7 +982,7 @@ const char *PyFT2Font_get_sfnt_table__doc__ =
982982 " Return one of the following SFNT tables: head, maxp, OS/2, hhea, "
983983 " vhea, post, or pclt.\n " ;
984984
985- static PyObject *PyFT2Font_get_sfnt_table (PyFT2Font *self, PyObject *args, PyObject *kwds )
985+ static PyObject *PyFT2Font_get_sfnt_table (PyFT2Font *self, PyObject *args)
986986{
987987 char *tagname;
988988 if (!PyArg_ParseTuple (args, " s:get_sfnt_table" , &tagname)) {
@@ -1284,7 +1284,7 @@ const char *PyFT2Font_get_path__doc__ =
12841284 " Get the path data from the currently loaded glyph as a tuple of vertices, "
12851285 " codes.\n " ;
12861286
1287- static PyObject *PyFT2Font_get_path (PyFT2Font *self, PyObject *args, PyObject *kwds )
1287+ static PyObject *PyFT2Font_get_path (PyFT2Font *self, PyObject *args)
12881288{
12891289 CALL_CPP (" get_path" , return self->x ->get_path ());
12901290}
@@ -1294,7 +1294,7 @@ const char *PyFT2Font_get_image__doc__ =
12941294 " --\n\n "
12951295 " Return the underlying image buffer for this font object.\n " ;
12961296
1297- static PyObject *PyFT2Font_get_image (PyFT2Font *self, PyObject *args, PyObject *kwds )
1297+ static PyObject *PyFT2Font_get_image (PyFT2Font *self, PyObject *args)
12981298{
12991299 FT2Image &im = self->x ->get_image ();
13001300 npy_intp dims[] = {(npy_intp)im.get_height (), (npy_intp)im.get_width () };
0 commit comments