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

Local fonts are not loaded

Open sebastian-65 opened this issue 3 years ago • 19 comments

Local fonts not found. Possible regression of #243, #155.

  • figma-linux: 0.9.3-0, build date today 2022-01-02
  • electron9: 9.4.4-4
  • xfce4, Arch linux (5.15.12-arch1-1)
  • font directories in Figma settings:
  • /home/sebastian/.local/share/fonts
  • /usr/share/fonts
  • /home/sebastian/.fonts [symlink to ~/.local/share/fonts]

sebastian-65 avatar Jan 02 '22 14:01 sebastian-65

I'm having the same issue as well on Ubuntu 20.04.

Simperfy avatar Jan 20 '22 05:01 Simperfy

@ChugunovRoman Based on previous issues with the same problem, I assume this might be a critical issue as well. Thank you for your attention.

sebastian-65 avatar Jan 25 '22 13:01 sebastian-65

Same here!

rlopzc avatar Feb 10 '22 16:02 rlopzc

Same problem here, but only some fonts variants not loaded.

I've test on Flatpak and GIT (AUR) version on ARCH LINUX

AdsonCicilioti avatar Feb 21 '22 16:02 AdsonCicilioti

Has been working since release 0.9.5, release 0.9.6 improved performance as well. I'm on Arch. AUR still on 0.9.5.

image

snarkyalyx avatar Mar 19 '22 20:03 snarkyalyx

Has been working since release 0.9.5, release 0.9.6 improved performance as well. I'm on Arch. AUR still on 0.9.5.

image

I am on Ubuntu 20.04, and moved some custom fonts to '/usr/local/share/fonts', the fonts appear in the fonts app on my system, but it doesn't appear in figma-linux.

Please how did you get font to work on Arch?

Konadu-Akwasi-Akuoko avatar Mar 22 '22 17:03 Konadu-Akwasi-Akuoko

I installed the font system wide. I don't know how Ubuntu works, works fine on Arch.

snarkyalyx avatar Mar 22 '22 17:03 snarkyalyx

I installed the font system wide. I don't know how Ubuntu works, works fine on Arch.

@Awoolyx Arial Black works in your machine?

AdsonCicilioti avatar Mar 22 '22 18:03 AdsonCicilioti

I installed the font system wide. I don't know how Ubuntu works, works fine on Arch.

I think I figured it out.

It seems figma-linux on Ubuntu does not recognize fonts with .TFF or .tff extension, so I had to manually change all my fonts extensions to .otf. When using ubuntu you can select all your fonts and bulk rename it in Nautilus file manager (default file manager in Ubuntu)

After changing all my downloaded fonts from .TFF or .tff extensions to .otf, I moved all the fonts to /usr/local/share/fonts/, I used the command sudo mv *.otf /usr/local/share/fonts to move all file extensions with the .otf format to the specified directory, I did this command at where my fonts are located. After that I restarted figma-linux, and it all came.

Here is a screenshot of my /usr/local/share/fonts/, notice that all file extensions are in .otf format Screenshot from 2022-03-22 22-12-03

Here is some screenshots of the custom texts working perfectly Screenshot from 2022-03-22 22-15-30 )

The path I am pointing figma-linux to look for fonts Screenshot from 2022-03-22 22-17-09edit )

I hope it helps someone :)

Konadu-Akwasi-Akuoko avatar Mar 22 '22 22:03 Konadu-Akwasi-Akuoko

I installed the font system wide. I don't know how Ubuntu works, works fine on Arch.

I think I figured it out.

It seems figma-linux on Ubuntu does not recognize fonts with .TFF or .tff extension, so I had to manually change all my fonts extensions to .otf. When using ubuntu you can select all your fonts and bulk rename it in Nautilus file manager (default file manager in Ubuntu) ...

I'm follow your tip, but the problem still the same. image

Various ARIAL Variants don't is recognized.

AdsonCicilioti avatar Mar 22 '22 23:03 AdsonCicilioti

I installed the font system wide. I don't know how Ubuntu works, works fine on Arch.

I think I figured it out. It seems figma-linux on Ubuntu does not recognize fonts with .TFF or .tff extension, so I had to manually change all my fonts extensions to .otf. When using ubuntu you can select all your fonts and bulk rename it in Nautilus file manager (default file manager in Ubuntu) ...

I'm follow your tip, but the problem still the same. image

Various ARIAL Variants don't is recognized.

Oh ok, mine works fine though.

I don't know, did you move your fonts to the specified directory and was the font extension in .otf format? And did you also point figma to look there for fonts? Screenshot from 2022-03-22 22-17-09edit

This is the place I downloaded my fonts: https://freefontsfamily.com/ I don't know if it is the font or any other thing, but try and download some fonts from there, and change it's extension to .otf and let's see.

Konadu-Akwasi-Akuoko avatar Mar 23 '22 08:03 Konadu-Akwasi-Akuoko

@Konadu-Akwasi-Akuoko Yes, i've set the font directories and rename to .otf. Do already test with Arial font variants, in special the BLACK variant?

AdsonCicilioti avatar Mar 23 '22 13:03 AdsonCicilioti

.otf files are not .ttf files. I don't think that is a real solution.

sgen avatar Mar 23 '22 18:03 sgen

@Konadu-Akwasi-Akuoko Yes, i've set the font directories and rename to .otf. Do already test with Arial font variants, in special the BLACK variant?

Oh, sorry to hear that, maybe I can try it out for you. I'm downloading the Arial Black variant, I'll let you know the outcome.

Konadu-Akwasi-Akuoko avatar Mar 24 '22 09:03 Konadu-Akwasi-Akuoko

@Konadu-Akwasi-Akuoko Yes, i've set the font directories and rename to .otf. Do already test with Arial font variants, in special the BLACK variant?

I downloaded the Arial Black fonts, but it is not working in Figma on my machine too. I downloaded calibri and it worked fine, I don't know if it is related to figma issues just as @sgen said

Konadu-Akwasi-Akuoko avatar Mar 24 '22 10:03 Konadu-Akwasi-Akuoko

Desperate to get this working as well as I returned to linux (Ubuntu) - and I've been using, in particular, the FONT AWESOME component in FIGMA.

Doesn't work

  • I have NOT been able so far to use Arial or Verdana despite having the standard ttf-mscorefonts-installer package - and the fonts showing up in "Fonts" app - and the font files present in /usr/share/fonts/truetype/msttcorefonts/Arial.ttf

  • I tried just copying those files to ~/.local/share/fonts/ but no bueno

Works

Thankfully I am able to select a custom font "Font Awesome 5 Pro Solid" in figma-linux, which allows me to continue using the "Font Awesome Official Component (Free + Pro)" (with this component you can just edit the text label to eg. "check" and the icon instantly switches to the icon of the same name, as seen on Font Awesome cheatsheet - pretty handy!).

  • I downloaded the Font Awesome 5 Pro archive ("for local fonts") from the FA website, and moved the .otf files to ~/.local/share/fonts/

Screenshot from 2022-10-19 17-28-05

So what to make of it? So far at least it seems to confirm .ttf files don't work, and the .otf files somehow did (figma-linux, Ubuntu, .AppImage version, no changes to the default settings).

( edit: haven't time yet, I'll try with other .otf fonts, which in theory should work - renaming Arial.ttf to Arial.otf didn't work for me - so I assume Konadu did have .otf files maybe he downloaded that had the wrong extension, and were in fact OTF format? )

fabd avatar Oct 19 '22 15:10 fabd

Not working on Debian Bullseye 12 I have done everything as @Konadu-Akwasi-Akuoko said, pointed Figma to directories - still no fonts available

verhovensky avatar Oct 14 '23 12:10 verhovensky

And did you also point figma to look there for fonts? Screenshot from 2022-03-22 22-17-09edit

silly question, where do you access this settings page?

sanderpick avatar Jan 21 '24 17:01 sanderpick

And did you also point figma to look there for fonts? Screenshot from 2022-03-22 22-17-09edit

silly question, where do you access this settings page?

Check the context menu on the title bar, or right click on the title bar to show the context menu

Konadu-Akwasi-Akuoko avatar Mar 04 '24 03:03 Konadu-Akwasi-Akuoko