Skip to content
This repository has been archived by the owner on Jan 27, 2022. It is now read-only.

Blurry text #43

Open
ire4ever1190 opened this issue Nov 25, 2021 · 4 comments
Open

Blurry text #43

ire4ever1190 opened this issue Nov 25, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@ire4ever1190
Copy link
Contributor

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)

@ire4ever1190
Copy link
Contributor Author

Specifying a font seems to improve it

https://imgur.com/WbRK6AB.png

@Ethosa
Copy link
Owner

Ethosa commented Nov 25, 2021

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.

@Ethosa Ethosa added the bug Something isn't working label Nov 25, 2021
@ire4ever1190
Copy link
Contributor Author

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

@Ethosa
Copy link
Owner

Ethosa commented Nov 28, 2021

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants