figma-linux-font-helper icon indicating copy to clipboard operation
figma-linux-font-helper copied to clipboard

Doesnt load fonts

Open witalijx opened this issue 2 years ago • 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

witalijx avatar May 22 '22 20:05 witalijx

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

louispotok avatar May 26 '22 07:05 louispotok

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

witalijx avatar May 27 '22 10:05 witalijx

Same. Ubuntu 22.04

getdir avatar Jun 05 '22 20:06 getdir

No help with this?

witalijx avatar Jun 25 '22 10:06 witalijx

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.

k1nglip avatar Jun 26 '22 06:06 k1nglip

@skyyy777 you might want to look into this other similar project https://github.com/Figma-Linux/figma-linux-font-helper/issues/14#issuecomment-1148101345

the94air avatar Jun 26 '22 13:06 the94air

@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

louispotok avatar Jun 28 '22 00:06 louispotok

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

daguitosama avatar Jul 06 '22 06:07 daguitosama

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

haris2k avatar Jul 17 '22 06:07 haris2k

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.

Techassi avatar Aug 21 '22 11:08 Techassi

Had the same issue, the steps above fxed it.

benhbell avatar Sep 11 '22 21:09 benhbell

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

ChugunovRoman avatar Apr 05 '23 12:04 ChugunovRoman

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

WilliamWhispell avatar Aug 28 '23 14:08 WilliamWhispell

@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! ❤️

christoph-teichmeister avatar Jan 09 '24 15:01 christoph-teichmeister