font problem
Just installed leif to try write small project, on first build even without trying to output text it trowing that error. After i saw that todo app with setup script but it wont help and it trowing same error.
I just had this same issue on windows and I fixed it by moving the .leif/ folder to the right spot. It's just a path issue, so try copying or moving .leif to home/neko/ and you should be straight
this should now be fixed as the install script copies the .leif folder automatically.
you can pull and reinstall or just move the .leif into /home/user and make sure that it belongs to your user.
this should now be fixed as the install script copies the .leif folder automatically.
you can pull and reinstall or just move the .leif into /home/user and make sure that it belongs to your user.
there is a problem. .leif already here (I linked screenshot with ls -l in first comment). it cannot open it, even so it here
do
sudo chown ~/.leif your_user:your_user
and see if it fixes it
I installed Leif today and got the same error:
[LEIF ERROR]: Failed to open font file '/home/dana/.leif/assets/fonts/inter.ttf'
Segmentation fault
But the fix is pretty simple.
mkdir -p ~/.leif/assets/fonts #Create, if it doesn't exist, the folder you're looking for.
wget https://github.com/rsms/inter/releases/download/v3.19/Inter-3.19.zip #Download the font.
unzip Inter-3.19.zip -d Inter-3.19
Find the font you want in the Inter-3.19 folder.
In my case the path was: /Inter-3.19/Inter Hinted for Windows/Desktop/Inter-Regular.ttf
Inside the correct directory, copy the font to the directory that Leif is looking for.
cp Inter-Regular.ttf ~/.leif/assets/fonts/inter.ttf
I installed Leif today and got the same error:
[LEIF ERROR]: Failed to open font file '/home/dana/.leif/assets/fonts/inter.ttf' Segmentation faultBut the fix is pretty simple.
mkdir -p ~/.leif/assets/fonts #Create, if it doesn't exist, the folder you're looking for. wget https://github.com/rsms/inter/releases/download/v3.19/Inter-3.19.zip #Download the font. unzip Inter-3.19.zip -d Inter-3.19Find the font you want in the Inter-3.19 folder.
In my case the path was:
/Inter-3.19/Inter Hinted for Windows/Desktop/Inter-Regular.ttfInside the correct directory, copy the font to the directory that Leif is looking for.
cp Inter-Regular.ttf ~/.leif/assets/fonts/inter.ttf
are you on windows?
yes. I'm using WSL with Ubuntu
okay, and can you run leif?
Managed to build with this for macos, copied .leif into ~.
Still gives segmentation fault on lf_init_glfw function call after compiling.