Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

font problem #9

Open
AsaNekoo opened this issue May 31, 2024 · 8 comments
Open

font problem #9

AsaNekoo opened this issue May 31, 2024 · 8 comments

Comments

@AsaNekoo
Copy link

image
image
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.

@yaboypax
Copy link

yaboypax commented Jun 1, 2024

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

@cococry
Copy link
Owner

cococry commented Jun 1, 2024

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.

@AsaNekoo
Copy link
Author

AsaNekoo commented Jun 1, 2024

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

@cococry
Copy link
Owner

cococry commented Jun 1, 2024

do

sudo chown ~/.leif your_user:your_user

and see if it fixes it

@rchristof
Copy link

rchristof commented Jun 5, 2024

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

@cococry
Copy link
Owner

cococry commented Jun 5, 2024

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

are you on windows?

@rchristof
Copy link

yes. I'm using WSL with Ubuntu

@cococry
Copy link
Owner

cococry commented Jun 5, 2024

okay, and can you run leif?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants