Coder Social home page Coder Social logo

font problem about leif HOT 8 OPEN

AsaNekoo avatar AsaNekoo commented on June 27, 2024
font problem

from leif.

Comments (8)

yaboypax avatar yaboypax commented on June 27, 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

from leif.

cococry avatar cococry commented on June 27, 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.

from leif.

AsaNekoo avatar AsaNekoo commented on June 27, 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

from leif.

cococry avatar cococry commented on June 27, 2024

do

sudo chown ~/.leif your_user:your_user

and see if it fixes it

from leif.

rchristof avatar rchristof commented on June 27, 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

from leif.

cococry avatar cococry commented on June 27, 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?

from leif.

rchristof avatar rchristof commented on June 27, 2024

yes. I'm using WSL with Ubuntu

from leif.

cococry avatar cococry commented on June 27, 2024

okay, and can you run leif?

from leif.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.