You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src_c/doc/font_doc.h
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,10 +11,11 @@
11
11
#defineDOC_FONT_FONT "Font(filename=None, size=20) -> Font\nFont(filename, size) -> Font\nFont(pathlib.Path, size) -> Font\nFont(object, size) -> Font\ncreate a new Font object from a file"
12
12
#defineDOC_FONT_FONT_BOLD "bold -> bool\nGets or sets whether the font should be rendered in (faked) bold."
13
13
#defineDOC_FONT_FONT_NAME "name -> str\nGets the font's name."
14
+
#defineDOC_FONT_FONT_STYLENAME "style_name -> str\nGets the font's style_name."
14
15
#defineDOC_FONT_FONT_ITALIC "italic -> bool\nGets or sets whether the font should be rendered in (faked) italics."
15
16
#defineDOC_FONT_FONT_UNDERLINE "underline -> bool\nGets or sets whether the font should be rendered with an underline."
16
17
#defineDOC_FONT_FONT_STRIKETHROUGH "strikethrough -> bool\nGets or sets whether the font should be rendered with a strikethrough."
17
-
#defineDOC_FONT_FONT_ALIGN "align -> int\nSet how rendered text is aligned when given a wrap length"
18
+
#defineDOC_FONT_FONT_ALIGN "align -> int\nSet how rendered text is aligned when given a wrap length."
18
19
#defineDOC_FONT_FONT_RENDER "render(text, antialias, color, bgcolor=None, wraplength=0) -> Surface\ndraw text on a new Surface"
19
20
#defineDOC_FONT_FONT_SIZE "size(text) -> (width, height)\ndetermine the amount of space needed to render text"
20
21
#defineDOC_FONT_FONT_SETUNDERLINE "set_underline(bool) -> None\ncontrol if text is rendered with an underline"
Copy file name to clipboardExpand all lines: src_c/doc/freetype_doc.h
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@
13
13
#defineDOC_FREETYPE_GETDEFAULTFONT "get_default_font() -> string\nGet the filename of the default font"
14
14
#defineDOC_FREETYPE_FONT "Font(file, size=0, font_index=0, resolution=0, ucs4=False) -> Font\nFont(pathlib.Path) -> Font\nCreate a new Font instance from a supported font file."
15
15
#defineDOC_FREETYPE_FONT_NAME "name -> string\nProper font name."
16
+
#defineDOC_FREETYPE_FONT_STYLENAME "style_name -> str\nGets the font's style_name."
0 commit comments