ancient chinese+black

This commit is contained in:
Sander Land committed 2021-01-05 17:23:23 +01:00
1 parent fa12547dcb
commit edd2c160c7
25 files changed
+51 -12

No files matched your search

+3 -1
View File
@@ -664,7 +664,9 @@ def cached_text_texture(text, font_name, markup, _cache={}, **kwargs):
def draw_text(pos, text, font_name=None, markup=False, **kwargs):
texture = cached_text_texture(text, font_name, markup, **kwargs)
Rectangle(
texture=texture, pos=(pos[0] - texture.size[0] / 2, pos[1] - texture.size[1] / 2), size=texture.size,
texture=texture,
pos=(pos[0] - texture.size[0] / 2, pos[1] - texture.size[1] / 2),
size=texture.size,
)