mastering_nim icon indicating copy to clipboard operation
mastering_nim copied to clipboard

Chapter 3 drawText compile issue

Open hlclemson opened this issue 7 months ago • 0 comments

The following code fails to compile on Arch Linux.

Code

import pixels

drawText 30, 40, "Welcome to Nim!", 10, Yellow


System Info OS: Arch Linux x86_64 Host: Oryx Pro (oryp8) Kernel: 6.6.6-arch1-1 Shell: bash 5.2.21 DE: KDE Plasma 5.27.10 WM: KWin (Wayland) WM Theme: Breeze Theme: Breeze (Dark) [QT], Breeze [GTK2/3] Icons: breeze-dark [QT], breeze-dark [GTK2/3/4] Font: Fira Sans (10pt) [QT], Fira Sans (10pt) [GTK2/3/4] Cursor: breeze (24px) Terminal: foot 1.16.2 Terminal Font: DejaVu Sans Mono (10pt) CPU: 11th Gen Intel(R) Core(TM) i7-11800H (16) @ 4.60 GHz GPU 1: Intel UHD Graphics GPU 2: NVIDIA GeForce RTX 3070 Mobile / Max-Q Memory: 6.09 GiB / 31.20 GiB (20%) Locale: en_US.UTF-8

Error Message /home/anon/Documents/ProgrammingLearning/nim/masteringNim/pixel3.nim(30) pixel3 /home/anon/.nimble/pkgs2/pixels-0.1.0-d6b41f4a271e9eedfe1e6e8c13d7fb6f010b6c23/pixels.nim(12) drawText Error: unhandled exception: font could not be created, SDL error Couldn't open /usr/share/fonts/TTF/FiraSans-Regular.ttf [SDLException]

hlclemson avatar Dec 15 '23 21:12 hlclemson