Mercurial > games > semicongine
diff tests/test_font.nim @ 412:262e771e2573
add: packed textures for font-atlas
author | Sam <sam@basx.dev> |
---|---|
date | Sat, 20 Jan 2024 21:28:17 +0700 |
parents | e50c57423567 |
children | 8fb4387b2ea1 |
line wrap: on
line diff
--- a/tests/test_font.nim Sat Jan 20 20:17:03 2024 +0700 +++ b/tests/test_font.nim Sat Jan 20 21:28:17 2024 +0700 @@ -10,9 +10,9 @@ # build scene var scene = Scene(name: "main") # var font = loadFont("DejaVuSans.ttf", lineHeightPixels=90'f32, charset="abcdefghijklmnopqrstuvwxyz ".toRunes) - var font = loadFont("DejaVuSans.ttf", lineHeightPixels=90'f32) + var font = loadFont("DejaVuSans.ttf", lineHeightPixels=180'f32) var textbox = initText(32, font, "", color=newVec4f(1, 0, 0, 1)) - let fontscale = 0.005 + let fontscale = 0.001 scene.add textbox textbox.mesh.transform = scale(fontscale, fontscale) engine.loadScene(scene)