Mercurial > games > semicongine
diff tests/test_font.nim @ 1088:ac3025fcc324
fix: tests
author | sam <sam@basx.dev> |
---|---|
date | Sat, 06 Apr 2024 15:27:09 +0700 |
parents | 7629f85823a4 |
children | 73b572f82a1f |
line wrap: on
line diff
--- a/tests/test_font.nim Fri Apr 05 23:19:45 2024 +0700 +++ b/tests/test_font.nim Sat Apr 06 15:27:09 2024 +0700 @@ -12,7 +12,7 @@ # build scene var scene = Scene(name: "main") var font = loadFont("DejaVuSans.ttf", lineHeightPixels = 210'f32) - var origin = initPanel(size = newVec2f(0.01, 0.01)) + var origin = initPanel(transform = scale(0.01, 0.01)) var main_text = font.initText("".toRunes, maxLen = 255, color = newVec4f(1, 0.15, 0.15, 1), maxWidth = 1.0, transform = scale(0.0005, 0.0005)) var help_text = font.initText("""Controls