Skip to content

Commit 9087d3e

Browse files
committed
Updated font outline formatting.
1 parent 731f43e commit 9087d3e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src_c/doc/font_doc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#define DOC_FONT_FONT_GETHEIGHT "get_height() -> int\nget the height of the font"
3535
#define DOC_FONT_FONT_SETPOINTSIZE "set_point_size(size, /) -> None\nset the point size of the font"
3636
#define DOC_FONT_FONT_GETPOINTSIZE "get_point_size() -> int\nget the point size of the font"
37-
#define DOC_FONT_FONT_SETOUTLINE "set_outline(outline, /) -> None\nset The outline value of the font"
37+
#define DOC_FONT_FONT_SETOUTLINE "set_outline(size, /) -> None\nset the outline value of the font"
3838
#define DOC_FONT_FONT_GETOUTLINE "get_outline() -> int\nget the outline value of the font"
3939
#define DOC_FONT_FONT_GETASCENT "get_ascent() -> int\nget the ascent of the font"
4040
#define DOC_FONT_FONT_GETDESCENT "get_descent() -> int\nget the descent of the font"

src_c/font.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,8 @@ font_setter_outline(PyObject *self, PyObject *value, void *closure)
945945
return 0;
946946
#else
947947
RAISE(pgExc_SDLError,
948-
"pygame.font not compiled with a new enough SDL_ttf version. Needs SDL_ttf 2.0.12 or above.");
948+
"pygame.font not compiled with a new enough SDL_ttf version. Needs "
949+
"SDL_ttf 2.0.12 or above.");
949950
return -1;
950951
#endif
951952
}
@@ -990,7 +991,6 @@ font_set_outline(PyObject *self, PyObject *arg)
990991
#endif
991992
}
992993

993-
994994
static PyObject *
995995
font_getter_name(PyObject *self, void *closure)
996996
{

test/font_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ def query(
11761176
underline=False,
11771177
strikethrough=False,
11781178
antialiase=False,
1179-
outline=0
1179+
outline=0,
11801180
):
11811181
if self.aborted:
11821182
return False

0 commit comments

Comments
 (0)