Figma-Linux / figma-linux

Figma is the first interface design tool based in the browser, making it easier for teams to create software. Join us in https://t.me/figma_linux
GNU General Public License v2.0
2.75k stars 167 forks source link

Figma not view MS fonts #282

Open aquinary opened 2 years ago

aquinary commented 2 years ago

Tahoma exist in system image

diegosomar commented 2 years ago

I have the same problem. MS fonts are installed but are not recognized.

In my case, MS fonts are installed in: /usr/share/fonts/truetype/msttcorefonts/

I added this path to app settings but the fonts are not loaded. 2022-05-04_12-34 image

> neofetch
            .-/+oossssoo+/-.               diegoramos@diegoramosNTBK 
        `:+ssssssssssssssssss+:`           ------------------------- 
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu 20.04.4 LTS x86_64 
    .ossssssssssssssssssdMMMNysssso.       Host: VivoBook_ASUSLaptop X513EQ_X513EQ 1.0 
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: 5.13.0-40-generic 
  +ssssssssshmydMMMMMMMNddddyssssssss+     Uptime: 11 mins 
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: 2930 (dpkg), 28 (flatpak), 19 (snap) 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Shell: zsh 5.8 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Resolution: 2560x1080 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   DE: GNOME 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM: Mutter 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   WM Theme: Adwaita 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Theme: Yaru-dark [GTK2/3] 
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Icons: Yaru [GTK2/3] 
  +sssssssssdmydMMMMMMMMddddyssssssss+     Terminal: gnome-terminal 
   /ssssssssssshdmNNNNmyNMMMMhssssss/      CPU: 11th Gen Intel i7-1165G7 (8) @ 4.700GHz 
    .ossssssssssssssssssdMMMNysssso.       GPU: Intel Device 9a49 
      -+sssssssssssssssssyyyssss+-         GPU: NVIDIA GeForce MX350 
        `:+ssssssssssssssssss+:`           Memory: 3578MiB / 15686MiB 
            .-/+oossssoo+/-.

Gnome fonts app

image image Instalado == Installed in portuguese

Edit 1

All other local fonts are loaded. Only MS Fonts located in the indicated path will not (Arial, Verdana, Georgia, Tahoma etc.). I tried to convert the ARIAL font TTF in OTF and saved in ~/.local/share/fonts (where other local fonts are correctly loaded) but Arial still not loading.

Edit 2

I open the app via terminal, to see the logs.

> flatpak run io.github.Figma_Linux.figma_linux
[2 preload-host-spawn-strategy] Running: /app/bin/zypak-helper child - /app/figma-linux/figma-linux --type=zygote
Gtk-Message: 15:23:11.248: Failed to load module "canberra-gtk-module"
Gtk-Message: 15:23:11.248: Failed to load module "canberra-gtk-module"
[04/05/2022 15:23:11]:[INFO] - [wm] already signed in? false
[04/05/2022 15:23:13]:[ERROR] - [From web content: 2] [desktop] Unhandled message setWorkspaceProperties
[04/05/2022 15:23:13]:[ERROR] - [From web content: 2] [desktop] Unhandled message setWorkspaceProperties

The app has been released. Click in a file which use Arial

[04/05/2022 15:26:20]:[ERROR] - [From web content: 2] [desktop] Unhandled message setWorkspaceProperties
[04/05/2022 15:26:20]:[INFO] - The setWorkspaceName not implemented, workspaceName:  
[04/05/2022 15:26:20]:[ERROR] - [From web content: 3] [desktop] Unhandled message getZoomFactor
[04/05/2022 15:26:20]:[ERROR] - [From web content: 3] [desktop] Unhandled message getAllLocalManifestFileExtensionIds
[04/05/2022 15:26:20]:[ERROR] - [From web content: 3] [desktop] Unhandled message getZoomFactor
[04/05/2022 15:26:20]:[INFO] - The setWorkspaceName not implemented, workspaceName:  
[04/05/2022 15:26:20]:[INFO] - The setWorkspaceName not implemented, workspaceName:  
[04/05/2022 15:26:20]:[ERROR] - [From web content: 3] [desktop] Unhandled message getZoomFactor
[04/05/2022 15:26:22]:[ERROR] - [From web content: 3] [desktop] Unhandled message getZoomFactor
[04/05/2022 15:26:22]:[ERROR] - [From web content: 3] [desktop] Unhandled message getZoomFactor

File is opened. Arial is missing.

Edit 3

To test, I:

The IMPACT font is now available in Figma. I did the same steps with ARIAL, but not works. I tried 2 ways: download Arial OTF (hard to find) and convert the TTF to OTF and none works. Perhaps, there's an issue with some TTF versions and Figma can't recognize.

I tested Arial (and other MS fonts installed) in Gimp and Inkspace and works fine.

diegosomar commented 2 years ago

Edit 4

I keep doing tests in Arial. I downloaded the "MEDIUM" version, which does not come by default and it worked, that is, it was recognized by Figma. Maybe there is some kind of restriction in the Arial (default) font file, which prevents Figma from recognizing it.

KhanFlex commented 2 years ago

Is there any progress on this? I have the same issue. I tried installing any random font on Ubuntu 22.04 and Figma recognizes the font after you exit and restart it. For Ms Fonts, specifically Times New Roman, after installation the font can be recognized by other programs like Gimp and Libre Office Writer but not on Figma.

diegosomar commented 2 years ago

Is there any progress on this? I have the same issue. I tried installing any random font on Ubuntu 22.04 and Figma recognizes the font after you exit and restart it. For Ms Fonts, specifically Times New Roman, after installation the font can be recognized by other programs like Gimp and Libre Office Writer but not on Figma.

I'm waiting too. I develop some email marketings which uses default MS fonts, like Arial and is hard to use Figma without recognize MS fonts.

ChugunovRoman commented 2 years ago

@diegosomar @KhanFlex Hi. I'm very busy last time. I don't know when I able to continue work for figma-linux

gluck commented 2 years ago

likely same issue I reported here: https://github.com/Figma-Linux/font-reader/issues/1

luksak commented 2 years ago

I have the same issue. This is really annoying, if you have to work with one of the MS fonts... Has anyone found a workaround?

rodrigodagostino commented 2 years ago

@luksak this will not truly fix our problem since this is aimed for the browser version of Figma, but I suggest you give it a try: https://github.com/neetly/figma-agent-linux

It worked right out of the box, without even restarting my browser :)

luksak commented 2 years ago

@rodrigodagostino Wow, thanks a lot! That worked for me as well. As a temporary workaround that's fine.