@@ -62,7 +62,7 @@ static void PyFT2Image_dealloc(PyFT2Image *self)
62
62
}
63
63
64
64
const char *PyFT2Image_draw_rect__doc__ =
65
- " draw_rect(x0, y0, x1, y1)\n "
65
+ " draw_rect(self, x0, y0, x1, y1)\n "
66
66
" --\n\n "
67
67
" Draw an empty rectangle to the image.\n " ;
68
68
@@ -80,7 +80,7 @@ static PyObject *PyFT2Image_draw_rect(PyFT2Image *self, PyObject *args)
80
80
}
81
81
82
82
const 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 "
84
84
" --\n\n "
85
85
" Draw a filled rectangle to the image.\n " ;
86
86
@@ -421,7 +421,7 @@ static void PyFT2Font_dealloc(PyFT2Font *self)
421
421
}
422
422
423
423
const char *PyFT2Font_clear__doc__ =
424
- " clear()\n "
424
+ " clear(self )\n "
425
425
" --\n\n "
426
426
" Clear all the glyphs, reset for a new call to `.set_text`.\n " ;
427
427
@@ -433,7 +433,7 @@ static PyObject *PyFT2Font_clear(PyFT2Font *self, PyObject *args)
433
433
}
434
434
435
435
const char *PyFT2Font_set_size__doc__ =
436
- " set_size(ptsize, dpi)\n "
436
+ " set_size(self, ptsize, dpi)\n "
437
437
" --\n\n "
438
438
" Set the point size and dpi of the text.\n " ;
439
439
@@ -452,7 +452,7 @@ static PyObject *PyFT2Font_set_size(PyFT2Font *self, PyObject *args)
452
452
}
453
453
454
454
const char *PyFT2Font_set_charmap__doc__ =
455
- " set_charmap(i)\n "
455
+ " set_charmap(self, i)\n "
456
456
" --\n\n "
457
457
" Make the i-th charmap current.\n " ;
458
458
@@ -470,7 +470,7 @@ static PyObject *PyFT2Font_set_charmap(PyFT2Font *self, PyObject *args)
470
470
}
471
471
472
472
const char *PyFT2Font_select_charmap__doc__ =
473
- " select_charmap(i)\n "
473
+ " select_charmap(self, i)\n "
474
474
" --\n\n "
475
475
" Select a charmap by its FT_Encoding number.\n " ;
476
476
@@ -488,7 +488,7 @@ static PyObject *PyFT2Font_select_charmap(PyFT2Font *self, PyObject *args)
488
488
}
489
489
490
490
const char *PyFT2Font_get_kerning__doc__ =
491
- " get_kerning(left, right, mode)\n "
491
+ " get_kerning(self, left, right, mode)\n "
492
492
" --\n\n "
493
493
" Get the kerning between *left* and *right* glyph indices.\n "
494
494
" *mode* is a kerning mode constant:\n "
@@ -511,7 +511,7 @@ static PyObject *PyFT2Font_get_kerning(PyFT2Font *self, PyObject *args)
511
511
}
512
512
513
513
const char *PyFT2Font_set_text__doc__ =
514
- " set_text(string, angle, flags=32)\n "
514
+ " set_text(self, string, angle, flags=32)\n "
515
515
" --\n\n "
516
516
" Set the text *string* and *angle*.\n "
517
517
" *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
583
583
}
584
584
585
585
const char *PyFT2Font_get_num_glyphs__doc__ =
586
- " get_num_glyphs()\n "
586
+ " get_num_glyphs(self )\n "
587
587
" --\n\n "
588
588
" Return the number of loaded glyphs.\n " ;
589
589
@@ -593,7 +593,7 @@ static PyObject *PyFT2Font_get_num_glyphs(PyFT2Font *self, PyObject *args)
593
593
}
594
594
595
595
const char *PyFT2Font_load_char__doc__ =
596
- " load_char(charcode, flags=32)\n "
596
+ " load_char(self, charcode, flags=32)\n "
597
597
" --\n\n "
598
598
" Load character with *charcode* in current fontfile and set glyph.\n "
599
599
" *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 *
632
632
}
633
633
634
634
const char *PyFT2Font_load_glyph__doc__ =
635
- " load_glyph(glyphindex, flags=32)\n "
635
+ " load_glyph(self, glyphindex, flags=32)\n "
636
636
" --\n\n "
637
637
" Load character with *glyphindex* in current fontfile and set glyph.\n "
638
638
" *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
671
671
}
672
672
673
673
const char *PyFT2Font_get_width_height__doc__ =
674
- " get_width_height()\n "
674
+ " get_width_height(self )\n "
675
675
" --\n\n "
676
676
" Get the width and height in 26.6 subpixels of the current string set by `.set_text`.\n "
677
677
" 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)
687
687
}
688
688
689
689
const char *PyFT2Font_get_bitmap_offset__doc__ =
690
- " get_bitmap_offset()\n "
690
+ " get_bitmap_offset(self )\n "
691
691
" --\n\n "
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 " ;
@@ -702,7 +702,7 @@ static PyObject *PyFT2Font_get_bitmap_offset(PyFT2Font *self, PyObject *args)
702
702
}
703
703
704
704
const char *PyFT2Font_get_descent__doc__ =
705
- " get_descent()\n "
705
+ " get_descent(self )\n "
706
706
" --\n\n "
707
707
" Get the descent in 26.6 subpixels of the current string set by `.set_text`.\n "
708
708
" 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)
718
718
}
719
719
720
720
const char *PyFT2Font_draw_glyphs_to_bitmap__doc__ =
721
- " draw_glyphs_to_bitmap()\n "
721
+ " draw_glyphs_to_bitmap(self, antialiased=True )\n "
722
722
" --\n\n "
723
723
" Draw the glyphs that were loaded by `.set_text` to the bitmap.\n "
724
724
" 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
739
739
}
740
740
741
741
const char *PyFT2Font_get_xys__doc__ =
742
- " get_xys()\n "
742
+ " get_xys(self, antialiased=True )\n "
743
743
" --\n\n "
744
744
" Get the xy locations of the current glyphs.\n " ;
745
745
@@ -760,7 +760,7 @@ static PyObject *PyFT2Font_get_xys(PyFT2Font *self, PyObject *args, PyObject *kw
760
760
}
761
761
762
762
const 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 "
764
764
" --\n\n "
765
765
" Draw a single glyph to the bitmap at pixel locations x, y\n "
766
766
" 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,
801
801
}
802
802
803
803
const char *PyFT2Font_get_glyph_name__doc__ =
804
- " get_glyph_name(index)\n "
804
+ " get_glyph_name(self, index)\n "
805
805
" --\n\n "
806
806
" Retrieve the ASCII name of a given glyph *index* in a face.\n "
807
807
" \n "
@@ -821,7 +821,7 @@ static PyObject *PyFT2Font_get_glyph_name(PyFT2Font *self, PyObject *args)
821
821
}
822
822
823
823
const char *PyFT2Font_get_charmap__doc__ =
824
- " get_charmap()\n "
824
+ " get_charmap(self )\n "
825
825
" --\n\n "
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 " ;
@@ -852,7 +852,7 @@ static PyObject *PyFT2Font_get_charmap(PyFT2Font *self, PyObject *args)
852
852
853
853
854
854
const char *PyFT2Font_get_char_index__doc__ =
855
- " get_char_index(codepoint)\n "
855
+ " get_char_index(self, codepoint)\n "
856
856
" --\n\n "
857
857
" Return the glyph index corresponding to a character *codepoint*.\n " ;
858
858
@@ -872,7 +872,7 @@ static PyObject *PyFT2Font_get_char_index(PyFT2Font *self, PyObject *args)
872
872
873
873
874
874
const char *PyFT2Font_get_sfnt__doc__ =
875
- " get_sfnt()\n "
875
+ " get_sfnt(self )\n "
876
876
" --\n\n "
877
877
" Load the entire SFNT names table, as a dict whose keys are\n "
878
878
" (platform-ID, ISO-encoding-scheme, language-code, and description)\n "
@@ -933,7 +933,7 @@ static PyObject *PyFT2Font_get_sfnt(PyFT2Font *self, PyObject *args)
933
933
}
934
934
935
935
const char *PyFT2Font_get_name_index__doc__ =
936
- " get_name_index(name)\n "
936
+ " get_name_index(self, name)\n "
937
937
" --\n\n "
938
938
" Return the glyph index of a given glyph *name*.\n "
939
939
" The glyph index 0 means 'undefined character code'.\n " ;
@@ -950,7 +950,7 @@ static PyObject *PyFT2Font_get_name_index(PyFT2Font *self, PyObject *args)
950
950
}
951
951
952
952
const char *PyFT2Font_get_ps_font_info__doc__ =
953
- " get_ps_font_info()\n "
953
+ " get_ps_font_info(self )\n "
954
954
" --\n\n "
955
955
" Return the information in the PS Font Info structure.\n " ;
956
956
@@ -977,7 +977,7 @@ static PyObject *PyFT2Font_get_ps_font_info(PyFT2Font *self, PyObject *args)
977
977
}
978
978
979
979
const char *PyFT2Font_get_sfnt_table__doc__ =
980
- " get_sfnt_table(name)\n "
980
+ " get_sfnt_table(self, name)\n "
981
981
" --\n\n "
982
982
" Return one of the following SFNT tables: head, maxp, OS/2, hhea, "
983
983
" vhea, post, or pclt.\n " ;
@@ -1279,7 +1279,7 @@ static PyObject *PyFT2Font_get_sfnt_table(PyFT2Font *self, PyObject *args)
1279
1279
}
1280
1280
1281
1281
const char *PyFT2Font_get_path__doc__ =
1282
- " get_path()\n "
1282
+ " get_path(self )\n "
1283
1283
" --\n\n "
1284
1284
" Get the path data from the currently loaded glyph as a tuple of vertices, "
1285
1285
" codes.\n " ;
@@ -1290,7 +1290,7 @@ static PyObject *PyFT2Font_get_path(PyFT2Font *self, PyObject *args)
1290
1290
}
1291
1291
1292
1292
const char *PyFT2Font_get_image__doc__ =
1293
- " get_image()\n "
1293
+ " get_image(self )\n "
1294
1294
" --\n\n "
1295
1295
" Return the underlying image buffer for this font object.\n " ;
1296
1296
0 commit comments