neetly / figma-agent-linux

Figma Agent for Linux (a.k.a. Font Helper)
MIT License
157 stars 9 forks source link

OpenType fonts no longer showing in fonts list #179

Closed orkben closed 5 months ago

orkben commented 5 months ago

I have 2 OpenType fonts and 1 TrueType font in my design work. Recently, the OpenType fonts have stopped working.

The TrueType font still shows up in the list.

I tried installing additional TrueType and OpenType fonts. The TrueType fonts are included in the Figma font list, the OpenType fonts are not.

All of the fonts used in testing above and visible when using LibreOffice Writer.

orkben commented 5 months ago

https://github.com/Figma-Linux/figma-linux has a similar problem, but it can see the "Regular" version of the OpenType font, but not the other weights 🤔

latin-1 commented 5 months ago

Hi, @orkben. Would you mind sending me your font files? Either attach to this issue or send an email.

orkben commented 5 months ago

Sure! Thanks for taking a look

The Nunito fonts are TTF and are showing in Figma

The Gilroy fonts are OTF and aren't showing in Figma

On Sat, 18 May 2024 at 23:30, Hikari Hayashi @.***> wrote:

Hi, @orkben https://github.com/orkben. Would you mind sending me your font files? Either attach to this issue or send an email.

— Reply to this email directly, view it on GitHub https://github.com/neetly/figma-agent-linux/issues/179#issuecomment-2118826447, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3EZK64SPV2LXJBRIATE2ITZC5JY5AVCNFSM6AAAAABHVQMP5CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJYHAZDMNBUG4 . You are receiving this because you were mentioned.Message ID: @.***>

orkben commented 5 months ago

I just discovered Nunito is in Google Fonts - so Figma would show it regardless :thinking:

Well I'm thoroughly confused now. I stopped the service and socket, and another local font I installed for testing, which isn't part of Google Fonts, is still usable in Figma :shrug:

orkben@beepboop:~> systemctl --user stop figma-agent.socket
orkben@beepboop:~> systemctl --user status figma-agent.socket
â—‹ figma-agent.socket - Figma Agent for Linux
     Loaded: loaded (/home/orkben/.local/share/systemd/user/figma-agent.socket; enabled; preset: disabled)
     Active: inactive (dead) since Sun 2024-05-19 15:50:34 AEST; 6s ago
   Duration: 18min 15.650s
   Triggers: â—Ź figma-agent.service
     Listen: [::]:44950 (Stream)

May 19 15:32:19 beepboop systemd[10716]: Listening on Figma Agent for Linux.
May 19 15:50:34 beepboop systemd[10716]: Closed Figma Agent for Linux.
orkben@beepboop:~> systemctl --user stop figma-agent.service
orkben@beepboop:~> systemctl --user status figma-agent.service
â—‹ figma-agent.service - Figma Agent for Linux
     Loaded: loaded (/home/orkben/.local/share/systemd/user/figma-agent.service; disabled; preset: disabled)
     Active: inactive (dead)
TriggeredBy: â—‹ figma-agent.socket

I'll email the font file.

orkben commented 5 months ago

Font file attached. This one is visible in Figma even without figma-agent-linux running it seems

On Sun, 19 May 2024 at 15:39, Ben Michie @.***> wrote:

Sure! Thanks for taking a look

The Nunito fonts are TTF and are showing in Figma

The Gilroy fonts are OTF and aren't showing in Figma

On Sat, 18 May 2024 at 23:30, Hikari Hayashi @.***> wrote:

Hi, @orkben https://github.com/orkben. Would you mind sending me your font files? Either attach to this issue or send an email.

— Reply to this email directly, view it on GitHub https://github.com/neetly/figma-agent-linux/issues/179#issuecomment-2118826447, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3EZK64SPV2LXJBRIATE2ITZC5JY5AVCNFSM6AAAAABHVQMP5CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJYHAZDMNBUG4 . You are receiving this because you were mentioned.Message ID: @.***>

latin-1 commented 5 months ago

Hello, @orkben. I'm sorry but I did not see your font files. Could you please send those files directly to rev.hikari (at) gmail.com?

latin-1 commented 5 months ago

Hi, @orkben.

image

I am unable to reproduce this problem on my laptop.

Are you running the latest version of figma-agent-linux? Could you please run the following command and send me the output file?

curl --header "Origin: https://www.figma.com" "http://127.0.0.1:44950/figma/font-files" > font-files.json

Thanks

orkben commented 5 months ago

Interesting! Yes, I'm pretty sure I'm on the latest version. I reinstalled it (disabled the service, removed the files, and ran the install script again) on the 19 May. I had a look at ~/.local/share/figma-agentand it says it was last modified on 19 May.

I've attached the json file.

I'm running OpenSuse Tumbleweed, if that matters.

orkben commented 5 months ago

This is the useragent string I've been using in Chrome: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36

orkben commented 5 months ago

font-files.json

latin-1 commented 5 months ago

It's weird. Could you please go to figma.com, open chrome devtools, open a design file, and check the network panel to see if the request was successfully sent?

image

(search for 127.0.0.1 or font-files)

orkben commented 5 months ago

No font-files or 127.0.0.1

image

image

latin-1 commented 5 months ago

Could you please type navigator.userAgent in console panel in devtools and see what the result is?

orkben commented 5 months ago

Oh dear - I'm sorry. It looks like the user-agent modifier extension I was using had stopped working. How embarrassing 🤦

I was using User Agent Switcher

I also tried User-Agent Switcher for Chrome, which I think the first one was based off of.

The new one that I've now installed and which works is User-Agent Switcher and Manager