Ethosa/nodesnim

Blurry text

Opened this issue · 4 comments

Describe the bug
Text is blurry and difficult to read

To Reproduce
To reproduce just run this code

import nodesnim

Window("Hello, world!")

build:
  - Scene scene:
    - Label hello:
      call:
        setSizeAnchor(1, 1)
        setTextAlign(0.5, 0.5, 0.5, 0.5)
        setText("Hello, world!")
        setBackgroundColor(Color(31, 45, 62))

addMainScene(scene)
windowLaunch()

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
https://imgur.com/CGVkdMj.png

Desktop

  • OS: Linux
  • DE: xfce
  • Nim: 1.6.0

Additional context
Ran using latest commit on nightly branch (#398858c)

Specifying a font seems to improve it

https://imgur.com/WbRK6AB.png

Which version of nodesnim are you using?
on Linux the standard_font is unifont.ttf from core folder
image

In future versions, I want to get rid of SDL dependencies and render text using OpenGL.

I am using the latest version of the nightly branch (398858c atm), have also tried using v0.4.2 and get the same result