Figma-Linux/figma-linux-font-helper

Doesnt load fonts

witalijx opened this issue ยท 14 comments

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

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

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

Same. Ubuntu 22.04

No help with this?

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.

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

@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

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

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

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 git@github.com: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.

Had the same issue, the steps above fxed it.