ancient chinese+black
This commit is contained in:
1 parent
fa12547dcb
commit
edd2c160c7
25 files changed
+51
-12
No files matched your search
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user