@@ -62,7 +62,7 @@ static void PyFT2Image_dealloc(PyFT2Image *self)
6262}
6363
6464const char *PyFT2Image_draw_rect__doc__ =
65- " draw_rect(x0, y0, x1, y1)\n "
65+ " draw_rect(self, x0, y0, x1, y1)\n "
6666 " --\n\n "
6767 " Draw an empty rectangle to the image.\n " ;
6868
@@ -80,7 +80,7 @@ static PyObject *PyFT2Image_draw_rect(PyFT2Image *self, PyObject *args)
8080}
8181
8282const char *PyFT2Image_draw_rect_filled__doc__ =
83- " draw_rect_filled(x0, y0, x1, y1)\n "
83+ " draw_rect_filled(self, x0, y0, x1, y1)\n "
8484 " --\n\n "
8585 " Draw a filled rectangle to the image.\n " ;
8686
@@ -421,7 +421,7 @@ static void PyFT2Font_dealloc(PyFT2Font *self)
421421}
422422
423423const char *PyFT2Font_clear__doc__ =
424- " clear()\n "
424+ " clear(self )\n "
425425 " --\n\n "
426426 " Clear all the glyphs, reset for a new call to `.set_text`.\n " ;
427427
@@ -433,7 +433,7 @@ static PyObject *PyFT2Font_clear(PyFT2Font *self, PyObject *args)
433433}
434434
435435const char *PyFT2Font_set_size__doc__ =
436- " set_size(ptsize, dpi)\n "
436+ " set_size(self, ptsize, dpi)\n "
437437 " --\n\n "
438438 " Set the point size and dpi of the text.\n " ;
439439
@@ -452,7 +452,7 @@ static PyObject *PyFT2Font_set_size(PyFT2Font *self, PyObject *args)
452452}
453453
454454const char *PyFT2Font_set_charmap__doc__ =
455- " set_charmap(i)\n "
455+ " set_charmap(self, i)\n "
456456 " --\n\n "
457457 " Make the i-th charmap current.\n " ;
458458
@@ -470,7 +470,7 @@ static PyObject *PyFT2Font_set_charmap(PyFT2Font *self, PyObject *args)
470470}
471471
472472const char *PyFT2Font_select_charmap__doc__ =
473- " select_charmap(i)\n "
473+ " select_charmap(self, i)\n "
474474 " --\n\n "
475475 " Select a charmap by its FT_Encoding number.\n " ;
476476
@@ -488,7 +488,7 @@ static PyObject *PyFT2Font_select_charmap(PyFT2Font *self, PyObject *args)
488488}
489489
490490const char *PyFT2Font_get_kerning__doc__ =
491- " get_kerning(left, right, mode)\n "
491+ " get_kerning(self, left, right, mode)\n "
492492 " --\n\n "
493493 " Get the kerning between *left* and *right* glyph indices.\n "
494494 " *mode* is a kerning mode constant:\n "
@@ -511,7 +511,7 @@ static PyObject *PyFT2Font_get_kerning(PyFT2Font *self, PyObject *args)
511511}
512512
513513const char *PyFT2Font_set_text__doc__ =
514- " set_text(string, angle, flags=32)\n "
514+ " set_text(self, string, angle, flags=32)\n "
515515 " --\n\n "
516516 " Set the text *string* and *angle*.\n "
517517 " *flags* can be a bitwise-or of the LOAD_XXX constants;\n "
@@ -583,7 +583,7 @@ static PyObject *PyFT2Font_set_text(PyFT2Font *self, PyObject *args, PyObject *k
583583}
584584
585585const char *PyFT2Font_get_num_glyphs__doc__ =
586- " get_num_glyphs()\n "
586+ " get_num_glyphs(self )\n "
587587 " --\n\n "
588588 " Return the number of loaded glyphs.\n " ;
589589
@@ -593,7 +593,7 @@ static PyObject *PyFT2Font_get_num_glyphs(PyFT2Font *self, PyObject *args)
593593}
594594
595595const char *PyFT2Font_load_char__doc__ =
596- " load_char(charcode, flags=32)\n "
596+ " load_char(self, charcode, flags=32)\n "
597597 " --\n\n "
598598 " Load character with *charcode* in current fontfile and set glyph.\n "
599599 " *flags* can be a bitwise-or of the LOAD_XXX constants;\n "
@@ -632,7 +632,7 @@ static PyObject *PyFT2Font_load_char(PyFT2Font *self, PyObject *args, PyObject *
632632}
633633
634634const char *PyFT2Font_load_glyph__doc__ =
635- " load_glyph(glyphindex, flags=32)\n "
635+ " load_glyph(self, glyphindex, flags=32)\n "
636636 " --\n\n "
637637 " Load character with *glyphindex* in current fontfile and set glyph.\n "
638638 " *flags* can be a bitwise-or of the LOAD_XXX constants;\n "
@@ -671,7 +671,7 @@ static PyObject *PyFT2Font_load_glyph(PyFT2Font *self, PyObject *args, PyObject
671671}
672672
673673const char *PyFT2Font_get_width_height__doc__ =
674- " get_width_height()\n "
674+ " get_width_height(self )\n "
675675 " --\n\n "
676676 " Get the width and height in 26.6 subpixels of the current string set by `.set_text`.\n "
677677 " The rotation of the string is accounted for. To get width and height\n "
@@ -687,7 +687,7 @@ static PyObject *PyFT2Font_get_width_height(PyFT2Font *self, PyObject *args)
687687}
688688
689689const char *PyFT2Font_get_bitmap_offset__doc__ =
690- " get_bitmap_offset()\n "
690+ " get_bitmap_offset(self )\n "
691691 " --\n\n "
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 " ;
@@ -702,7 +702,7 @@ static PyObject *PyFT2Font_get_bitmap_offset(PyFT2Font *self, PyObject *args)
702702}
703703
704704const char *PyFT2Font_get_descent__doc__ =
705- " get_descent()\n "
705+ " get_descent(self )\n "
706706 " --\n\n "
707707 " Get the descent in 26.6 subpixels of the current string set by `.set_text`.\n "
708708 " The rotation of the string is accounted for. To get the descent\n "
@@ -718,7 +718,7 @@ static PyObject *PyFT2Font_get_descent(PyFT2Font *self, PyObject *args)
718718}
719719
720720const char *PyFT2Font_draw_glyphs_to_bitmap__doc__ =
721- " draw_glyphs_to_bitmap()\n "
721+ " draw_glyphs_to_bitmap(self, antialiased=True )\n "
722722 " --\n\n "
723723 " Draw the glyphs that were loaded by `.set_text` to the bitmap.\n "
724724 " The bitmap size will be automatically set to include the glyphs.\n " ;
@@ -739,7 +739,7 @@ static PyObject *PyFT2Font_draw_glyphs_to_bitmap(PyFT2Font *self, PyObject *args
739739}
740740
741741const char *PyFT2Font_get_xys__doc__ =
742- " get_xys()\n "
742+ " get_xys(self, antialiased=True )\n "
743743 " --\n\n "
744744 " Get the xy locations of the current glyphs.\n " ;
745745
@@ -760,7 +760,7 @@ static PyObject *PyFT2Font_get_xys(PyFT2Font *self, PyObject *args, PyObject *kw
760760}
761761
762762const char *PyFT2Font_draw_glyph_to_bitmap__doc__ =
763- " draw_glyph_to_bitmap(bitmap, x, y, glyph)\n "
763+ " draw_glyph_to_bitmap(self, image, x, y, glyph, antialiased=True )\n "
764764 " --\n\n "
765765 " Draw a single glyph to the bitmap at pixel locations x, y\n "
766766 " Note it is your responsibility to set up the bitmap manually\n "
@@ -801,7 +801,7 @@ static PyObject *PyFT2Font_draw_glyph_to_bitmap(PyFT2Font *self, PyObject *args,
801801}
802802
803803const char *PyFT2Font_get_glyph_name__doc__ =
804- " get_glyph_name(index)\n "
804+ " get_glyph_name(self, index)\n "
805805 " --\n\n "
806806 " Retrieve the ASCII name of a given glyph *index* in a face.\n "
807807 " \n "
@@ -821,7 +821,7 @@ static PyObject *PyFT2Font_get_glyph_name(PyFT2Font *self, PyObject *args)
821821}
822822
823823const char *PyFT2Font_get_charmap__doc__ =
824- " get_charmap()\n "
824+ " get_charmap(self )\n "
825825 " --\n\n "
826826 " Return a dict that maps the character codes of the selected charmap\n "
827827 " (Unicode by default) to their corresponding glyph indices.\n " ;
@@ -852,7 +852,7 @@ static PyObject *PyFT2Font_get_charmap(PyFT2Font *self, PyObject *args)
852852
853853
854854const char *PyFT2Font_get_char_index__doc__ =
855- " get_char_index(codepoint)\n "
855+ " get_char_index(self, codepoint)\n "
856856 " --\n\n "
857857 " Return the glyph index corresponding to a character *codepoint*.\n " ;
858858
@@ -872,7 +872,7 @@ static PyObject *PyFT2Font_get_char_index(PyFT2Font *self, PyObject *args)
872872
873873
874874const char *PyFT2Font_get_sfnt__doc__ =
875- " get_sfnt()\n "
875+ " get_sfnt(self )\n "
876876 " --\n\n "
877877 " Load the entire SFNT names table, as a dict whose keys are\n "
878878 " (platform-ID, ISO-encoding-scheme, language-code, and description)\n "
@@ -933,7 +933,7 @@ static PyObject *PyFT2Font_get_sfnt(PyFT2Font *self, PyObject *args)
933933}
934934
935935const char *PyFT2Font_get_name_index__doc__ =
936- " get_name_index(name)\n "
936+ " get_name_index(self, name)\n "
937937 " --\n\n "
938938 " Return the glyph index of a given glyph *name*.\n "
939939 " The glyph index 0 means 'undefined character code'.\n " ;
@@ -950,7 +950,7 @@ static PyObject *PyFT2Font_get_name_index(PyFT2Font *self, PyObject *args)
950950}
951951
952952const char *PyFT2Font_get_ps_font_info__doc__ =
953- " get_ps_font_info()\n "
953+ " get_ps_font_info(self )\n "
954954 " --\n\n "
955955 " Return the information in the PS Font Info structure.\n " ;
956956
@@ -977,7 +977,7 @@ static PyObject *PyFT2Font_get_ps_font_info(PyFT2Font *self, PyObject *args)
977977}
978978
979979const char *PyFT2Font_get_sfnt_table__doc__ =
980- " get_sfnt_table(name)\n "
980+ " get_sfnt_table(self, name)\n "
981981 " --\n\n "
982982 " Return one of the following SFNT tables: head, maxp, OS/2, hhea, "
983983 " vhea, post, or pclt.\n " ;
@@ -1279,7 +1279,7 @@ static PyObject *PyFT2Font_get_sfnt_table(PyFT2Font *self, PyObject *args)
12791279}
12801280
12811281const char *PyFT2Font_get_path__doc__ =
1282- " get_path()\n "
1282+ " get_path(self )\n "
12831283 " --\n\n "
12841284 " Get the path data from the currently loaded glyph as a tuple of vertices, "
12851285 " codes.\n " ;
@@ -1290,7 +1290,7 @@ static PyObject *PyFT2Font_get_path(PyFT2Font *self, PyObject *args)
12901290}
12911291
12921292const char *PyFT2Font_get_image__doc__ =
1293- " get_image()\n "
1293+ " get_image(self )\n "
12941294 " --\n\n "
12951295 " Return the underlying image buffer for this font object.\n " ;
12961296
0 commit comments