dynamic size for demo font
This commit is contained in:
parent
f98eb79c57
commit
a677eca173
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ window = engine.screen.window
|
||||||
|
|
||||||
label = pyglet.text.Label('Hello, world',
|
label = pyglet.text.Label('Hello, world',
|
||||||
font_name='Times New Roman',
|
font_name='Times New Roman',
|
||||||
font_size=36,
|
font_size=window.height//8,
|
||||||
x=window.width//2, y=window.height//2,
|
x=window.width//2, y=window.height//2,
|
||||||
anchor_x='center', anchor_y='center')
|
anchor_x='center', anchor_y='center')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue