Mercurial > games > semicongine
diff tests/test_text.nim @ 1282:3308b88e53a6
did: undo part of stupid API renaming a few weeks back ;(
author | sam <sam@basx.dev> |
---|---|
date | Mon, 29 Jul 2024 16:05:09 +0700 |
parents | c09cdff9a97e |
children | 0369fa1ffbd9 |
line wrap: on
line diff
--- a/tests/test_text.nim Mon Jul 29 15:53:03 2024 +0700 +++ b/tests/test_text.nim Mon Jul 29 16:05:09 2024 +0700 @@ -14,7 +14,7 @@ var pipeline = CreatePipeline[DefaultFontShader](renderPass = vulkan.swapchain.renderPass) - var font = LoadFont("Overhaul.ttf", lineHeightPixels = 160) + var font = loadFont("Overhaul.ttf", lineHeightPixels = 160) var label1 = InitTextbox( renderdata, pipeline.descriptorSetLayouts[0], @@ -42,9 +42,9 @@ var pipeline = CreatePipeline[DefaultFontShader](renderPass = vulkan.swapchain.renderPass) - var font1 = LoadFont("Overhaul.ttf", lineHeightPixels = 40) - var font2 = LoadFont("Overhaul.ttf", lineHeightPixels = 160) - var font3 = LoadFont("DejaVuSans.ttf", lineHeightPixels = 160) + var font1 = loadFont("Overhaul.ttf", lineHeightPixels = 40) + var font2 = loadFont("Overhaul.ttf", lineHeightPixels = 160) + var font3 = loadFont("DejaVuSans.ttf", lineHeightPixels = 160) var labels = [ InitTextbox( renderdata, @@ -104,7 +104,7 @@ var pipeline = CreatePipeline[DefaultFontShader](renderPass = vulkan.swapchain.renderPass) - var font = LoadFont("DejaVuSans.ttf", lineHeightPixels = 40) + var font = loadFont("DejaVuSans.ttf", lineHeightPixels = 40) var labels: seq[Textbox] for horizontal in HorizontalAlignment: @@ -165,7 +165,7 @@ var pipeline = CreatePipeline[DefaultFontShader](renderPass = vulkan.swapchain.renderPass) - var font = LoadFont("DejaVuSans.ttf", lineHeightPixels = 160) + var font = loadFont("DejaVuSans.ttf", lineHeightPixels = 160) var labels: seq[Textbox] for i in 0 ..< 100: labels.add InitTextbox(