@@ -66,7 +66,7 @@ const char *PyFT2Image_draw_rect__doc__ =
66
66
" --\n\n "
67
67
" Draw an empty rectangle to the image.\n " ;
68
68
69
- static PyObject *PyFT2Image_draw_rect (PyFT2Image *self, PyObject *args, PyObject *kwds)
69
+ static PyObject *PyFT2Image_draw_rect (PyFT2Image *self, PyObject *args
70
70
{
71
71
double x0, y0 , x1, y1 ;
72
72
@@ -84,7 +84,7 @@ const char *PyFT2Image_draw_rect_filled__doc__ =
84
84
" --\n\n "
85
85
" Draw a filled rectangle to the image.\n " ;
86
86
87
- static PyObject *PyFT2Image_draw_rect_filled (PyFT2Image *self, PyObject *args, PyObject *kwds )
87
+ static PyObject *PyFT2Image_draw_rect_filled (PyFT2Image *self, PyObject *args)
88
88
{
89
89
double x0, y0 , x1, y1 ;
90
90
@@ -425,7 +425,7 @@ const char *PyFT2Font_clear__doc__ =
425
425
" --\n\n "
426
426
" Clear all the glyphs, reset for a new call to `.set_text`.\n " ;
427
427
428
- static PyObject *PyFT2Font_clear (PyFT2Font *self, PyObject *args, PyObject *kwds )
428
+ static PyObject *PyFT2Font_clear (PyFT2Font *self, PyObject *args)
429
429
{
430
430
CALL_CPP (" clear" , (self->x ->clear ()));
431
431
@@ -437,7 +437,7 @@ const char *PyFT2Font_set_size__doc__ =
437
437
" --\n\n "
438
438
" Set the point size and dpi of the text.\n " ;
439
439
440
- static PyObject *PyFT2Font_set_size (PyFT2Font *self, PyObject *args, PyObject *kwds )
440
+ static PyObject *PyFT2Font_set_size (PyFT2Font *self, PyObject *args)
441
441
{
442
442
double ptsize;
443
443
double dpi;
@@ -456,7 +456,7 @@ const char *PyFT2Font_set_charmap__doc__ =
456
456
" --\n\n "
457
457
" Make the i-th charmap current.\n " ;
458
458
459
- static PyObject *PyFT2Font_set_charmap (PyFT2Font *self, PyObject *args, PyObject *kwds )
459
+ static PyObject *PyFT2Font_set_charmap (PyFT2Font *self, PyObject *args)
460
460
{
461
461
int i;
462
462
@@ -474,7 +474,7 @@ const char *PyFT2Font_select_charmap__doc__ =
474
474
" --\n\n "
475
475
" Select a charmap by its FT_Encoding number.\n " ;
476
476
477
- static PyObject *PyFT2Font_select_charmap (PyFT2Font *self, PyObject *args, PyObject *kwds )
477
+ static PyObject *PyFT2Font_select_charmap (PyFT2Font *self, PyObject *args)
478
478
{
479
479
unsigned long i;
480
480
@@ -496,7 +496,7 @@ const char *PyFT2Font_get_kerning__doc__ =
496
496
" KERNING_UNFITTED - Return scaled but un-grid-fitted kerning distances\n "
497
497
" KERNING_UNSCALED - Return the kerning vector in original font units\n " ;
498
498
499
- static PyObject *PyFT2Font_get_kerning (PyFT2Font *self, PyObject *args, PyObject *kwds )
499
+ static PyObject *PyFT2Font_get_kerning (PyFT2Font *self, PyObject *args)
500
500
{
501
501
FT_UInt left, right, mode;
502
502
int result;
@@ -587,7 +587,7 @@ const char *PyFT2Font_get_num_glyphs__doc__ =
587
587
" --\n\n "
588
588
" Return the number of loaded glyphs.\n " ;
589
589
590
- static PyObject *PyFT2Font_get_num_glyphs (PyFT2Font *self, PyObject *args, PyObject *kwds )
590
+ static PyObject *PyFT2Font_get_num_glyphs (PyFT2Font *self, PyObject *args)
591
591
{
592
592
return PyLong_FromLong (self->x ->get_num_glyphs ());
593
593
}
@@ -677,7 +677,7 @@ const char *PyFT2Font_get_width_height__doc__ =
677
677
" The rotation of the string is accounted for. To get width and height\n "
678
678
" in pixels, divide these values by 64.\n " ;
679
679
680
- static PyObject *PyFT2Font_get_width_height (PyFT2Font *self, PyObject *args, PyObject *kwds )
680
+ static PyObject *PyFT2Font_get_width_height (PyFT2Font *self, PyObject *args)
681
681
{
682
682
long width, height;
683
683
@@ -692,7 +692,7 @@ const char *PyFT2Font_get_bitmap_offset__doc__ =
692
692
" Get the (x, y) offset in 26.6 subpixels for the bitmap if ink hangs left or below (0, 0).\n "
693
693
" Since Matplotlib only supports left-to-right text, y is always 0.\n " ;
694
694
695
- static PyObject *PyFT2Font_get_bitmap_offset (PyFT2Font *self, PyObject *args, PyObject *kwds )
695
+ static PyObject *PyFT2Font_get_bitmap_offset (PyFT2Font *self, PyObject *args)
696
696
{
697
697
long x, y;
698
698
@@ -708,7 +708,7 @@ const char *PyFT2Font_get_descent__doc__ =
708
708
" The rotation of the string is accounted for. To get the descent\n "
709
709
" in pixels, divide this value by 64.\n " ;
710
710
711
- static PyObject *PyFT2Font_get_descent (PyFT2Font *self, PyObject *args, PyObject *kwds )
711
+ static PyObject *PyFT2Font_get_descent (PyFT2Font *self, PyObject *args)
712
712
{
713
713
long descent;
714
714
@@ -809,7 +809,7 @@ const char *PyFT2Font_get_glyph_name__doc__ =
809
809
" names (per FT_FACE_FLAG_GLYPH_NAMES), this returns a made-up name which\n "
810
810
" does *not* roundtrip through `.get_name_index`.\n " ;
811
811
812
- static PyObject *PyFT2Font_get_glyph_name (PyFT2Font *self, PyObject *args, PyObject *kwds )
812
+ static PyObject *PyFT2Font_get_glyph_name (PyFT2Font *self, PyObject *args)
813
813
{
814
814
unsigned int glyph_number;
815
815
char buffer[128 ];
@@ -826,7 +826,7 @@ const char *PyFT2Font_get_charmap__doc__ =
826
826
" Return a dict that maps the character codes of the selected charmap\n "
827
827
" (Unicode by default) to their corresponding glyph indices.\n " ;
828
828
829
- static PyObject *PyFT2Font_get_charmap (PyFT2Font *self, PyObject *args, PyObject *kwds )
829
+ static PyObject *PyFT2Font_get_charmap (PyFT2Font *self, PyObject *args)
830
830
{
831
831
PyObject *charmap;
832
832
if (!(charmap = PyDict_New ())) {
@@ -856,7 +856,7 @@ const char *PyFT2Font_get_char_index__doc__ =
856
856
" --\n\n "
857
857
" Return the glyph index corresponding to a character *codepoint*.\n " ;
858
858
859
- static PyObject *PyFT2Font_get_char_index (PyFT2Font *self, PyObject *args, PyObject *kwds )
859
+ static PyObject *PyFT2Font_get_char_index (PyFT2Font *self, PyObject *args)
860
860
{
861
861
FT_UInt index ;
862
862
FT_ULong ccode;
@@ -878,7 +878,7 @@ const char *PyFT2Font_get_sfnt__doc__ =
878
878
" (platform-ID, ISO-encoding-scheme, language-code, and description)\n "
879
879
" tuples.\n " ;
880
880
881
- static PyObject *PyFT2Font_get_sfnt (PyFT2Font *self, PyObject *args, PyObject *kwds )
881
+ static PyObject *PyFT2Font_get_sfnt (PyFT2Font *self, PyObject *args)
882
882
{
883
883
PyObject *names;
884
884
@@ -938,7 +938,7 @@ const char *PyFT2Font_get_name_index__doc__ =
938
938
" Return the glyph index of a given glyph *name*.\n "
939
939
" The glyph index 0 means 'undefined character code'.\n " ;
940
940
941
- static PyObject *PyFT2Font_get_name_index (PyFT2Font *self, PyObject *args, PyObject *kwds )
941
+ static PyObject *PyFT2Font_get_name_index (PyFT2Font *self, PyObject *args)
942
942
{
943
943
char *glyphname;
944
944
long name_index;
@@ -954,7 +954,7 @@ const char *PyFT2Font_get_ps_font_info__doc__ =
954
954
" --\n\n "
955
955
" Return the information in the PS Font Info structure.\n " ;
956
956
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)
958
958
{
959
959
PS_FontInfoRec fontinfo;
960
960
@@ -982,7 +982,7 @@ const char *PyFT2Font_get_sfnt_table__doc__ =
982
982
" Return one of the following SFNT tables: head, maxp, OS/2, hhea, "
983
983
" vhea, post, or pclt.\n " ;
984
984
985
- static PyObject *PyFT2Font_get_sfnt_table (PyFT2Font *self, PyObject *args, PyObject *kwds )
985
+ static PyObject *PyFT2Font_get_sfnt_table (PyFT2Font *self, PyObject *args)
986
986
{
987
987
char *tagname;
988
988
if (!PyArg_ParseTuple (args, " s:get_sfnt_table" , &tagname)) {
@@ -1284,7 +1284,7 @@ const char *PyFT2Font_get_path__doc__ =
1284
1284
" Get the path data from the currently loaded glyph as a tuple of vertices, "
1285
1285
" codes.\n " ;
1286
1286
1287
- static PyObject *PyFT2Font_get_path (PyFT2Font *self, PyObject *args, PyObject *kwds )
1287
+ static PyObject *PyFT2Font_get_path (PyFT2Font *self, PyObject *args)
1288
1288
{
1289
1289
CALL_CPP (" get_path" , return self->x ->get_path ());
1290
1290
}
@@ -1294,7 +1294,7 @@ const char *PyFT2Font_get_image__doc__ =
1294
1294
" --\n\n "
1295
1295
" Return the underlying image buffer for this font object.\n " ;
1296
1296
1297
- static PyObject *PyFT2Font_get_image (PyFT2Font *self, PyObject *args, PyObject *kwds )
1297
+ static PyObject *PyFT2Font_get_image (PyFT2Font *self, PyObject *args)
1298
1298
{
1299
1299
FT2Image &im = self->x ->get_image ();
1300
1300
npy_intp dims[] = {(npy_intp)im.get_height (), (npy_intp)im.get_width () };
0 commit comments