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

Doesnt load fonts #31

Open
witalijx opened this issue May 22, 2022 · 14 comments
Open

Doesnt load fonts #31

witalijx opened this issue May 22, 2022 · 14 comments

Comments

@witalijx
Copy link

Hey, I get a 500 Internal Server Error when Figma tries to load fonts. Am I doing something wrong?
Screenshot from 2022-05-22 22-32-43

@louispotok
Copy link

Try the solution in #30 :
curl -L https://raw.githubusercontent.com/louispotok/figma-linux-font-helper/master/res/install.sh | bash

@witalijx
Copy link
Author

Try the solution in #30 : curl -L https://raw.githubusercontent.com/louispotok/figma-linux-font-helper/master/res/install.sh | bash

I still get the same error, no matter what fonts I try.
image

@getdir
Copy link

getdir commented Jun 5, 2022

Same. Ubuntu 22.04

@witalijx
Copy link
Author

No help with this?

@k1nglip
Copy link

k1nglip commented Jun 26, 2022

No help with this?

The solution is in one of the other threads, can't recall which. I went back to Mac after all, so can't help.

@the94air
Copy link

@Skyyy777 you might want to look into this other similar project #14 (comment)

@louispotok
Copy link

@Skyyy777 @getdir

Unfortunately I don't have any great ideas. I would try deleting all the files and services associated with the previous installation. I believe (on my machine) these are the locations to delete

rm -rf /opt/FontHelper
rm -rf /etc/figma-linux
rm /usr/lib/systemd/system/fonthelper-updater.service
rm /usr/lib/systemd/system/fonthelper.service

Then try installing fresh:

curl -L https://raw.githubusercontent.com/louispotok/figma-linux-font-helper/master/res/install.sh | bash

@daguitosama
Copy link

@Skyyy777 @getdir

Unfortunately I don't have any great ideas. I would try deleting all the files and services associated with the previous installation. I believe (on my machine) these are the locations to delete

rm -rf /opt/FontHelper
rm -rf /etc/figma-linux
rm /usr/lib/systemd/system/fonthelper-updater.service
rm /usr/lib/systemd/system/fonthelper.service

Then try installing fresh:

curl -L https://raw.githubusercontent.com/louispotok/figma-linux-font-helper/master/res/install.sh | bash

💯️ It tottally works man !!!

Figma should support this project.
Thanks so much for such a usefull work.

I just "uninstall" and install fresh as described avobe, added my $HOME .fonts to the fonthelper config, restarted, and boom i was having my locals back to my Figma game.

When i hit http://localhost:18412/figma/font-file?file=/home/me/.local/share/fonts/Satoshi-BlackItalic.otf&freetype_minimun_api_version=20 the font file gets downloaded properly.

@reharis
Copy link

reharis commented Jul 17, 2022

@Skyyy777 @getdir

Unfortunately I don't have any great ideas. I would try deleting all the files and services associated with the previous installation. I believe (on my machine) these are the locations to delete

rm -rf /opt/FontHelper
rm -rf /etc/figma-linux
rm /usr/lib/systemd/system/fonthelper-updater.service
rm /usr/lib/systemd/system/fonthelper.service

Then try installing fresh:

curl -L https://raw.githubusercontent.com/louispotok/figma-linux-font-helper/master/res/install.sh | bash

Thanks, It works.

@Techassi
Copy link

A few notes on how to make it work:

Avoid directory paths containing $HOME or ~ in your /etc/figma-linux/fonthelper config file. For example:

{
  "port": "18412",
  "directories": [
    "/usr/share/fonts",
    "/home/<USERNAME>/.local/share/fonts"
  ]
}

The install script fetches the latest release, which is at the time of writing over 2 years old. But you can easily build the project by your self locally. Rust + toolchain required.

Just clone the repo, build the release version with cargo, replace the binary and finally restart the systemd service:

git clone [email protected]:Figma-Linux/figma-linux-font-helper.git
cd figma-linux-font-helper
cargo build -r
mv target/release/font_helper /opt/FontHelper/fonthelper
systemctl restart fonthelper.service

To make the install script work out-of-the-box, a new release needs to made.

@benhbell
Copy link

Had the same issue, the steps above fxed it.

@ChugunovRoman
Copy link
Collaborator

@Skyyy777 @benhbell @Techassi @getdir try v0.1.7

@WilliamWhispell
Copy link

sudo nano /home//.config/systemd/user/figma-fonthelper.service
Use full path to your executable, do not use env variable.
Copy installed fonts into /usr/share/fonts/opentype and /usr/share/fonts/truetype
then restart service and reload figma - worked for me

@christoph-teichmeister
Copy link

@Skyyy777 @getdir

Unfortunately I don't have any great ideas. I would try deleting all the files and services associated with the previous installation. I believe (on my machine) these are the locations to delete

rm -rf /opt/FontHelper
rm -rf /etc/figma-linux
rm /usr/lib/systemd/system/fonthelper-updater.service
rm /usr/lib/systemd/system/fonthelper.service

Then try installing fresh:

curl -L https://raw.githubusercontent.com/louispotok/figma-linux-font-helper/master/res/install.sh | bash

and

Copy installed fonts into /usr/share/fonts/opentype and /usr/share/fonts/truetype
then restart service and reload figma - worked for me

made things work, thanks! ❤️

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