mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 01:34:24 +03:00
commit
2d7c543a2f
|
@ -877,7 +877,6 @@ font_render(FontObject* self, PyObject* args)
|
||||||
unsigned char convert_scale; /* scale factor for non-8bpp bitmaps */
|
unsigned char convert_scale; /* scale factor for non-8bpp bitmaps */
|
||||||
Imaging im;
|
Imaging im;
|
||||||
Py_ssize_t id;
|
Py_ssize_t id;
|
||||||
int horizontal_dir; /* is primary axis horizontal? */
|
|
||||||
int mask = 0; /* is FT_LOAD_TARGET_MONO enabled? */
|
int mask = 0; /* is FT_LOAD_TARGET_MONO enabled? */
|
||||||
int color = 0; /* is FT_LOAD_COLOR enabled? */
|
int color = 0; /* is FT_LOAD_COLOR enabled? */
|
||||||
int stroke_width = 0;
|
int stroke_width = 0;
|
||||||
|
@ -897,8 +896,6 @@ font_render(FontObject* self, PyObject* args)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
horizontal_dir = dir && strcmp(dir, "ttb") == 0 ? 0 : 1;
|
|
||||||
|
|
||||||
mask = mode && strcmp(mode, "1") == 0;
|
mask = mode && strcmp(mode, "1") == 0;
|
||||||
color = mode && strcmp(mode, "RGBA") == 0;
|
color = mode && strcmp(mode, "RGBA") == 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user