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

Font helper support (enhancement)

Open Flashwalker opened this issue 3 years ago • 11 comments

Hi, could you please add support for this font helper: https://github.com/tryvin/figma-linux-font-helper

Flashwalker avatar Jan 21 '22 11:01 Flashwalker

This is unnecessary - Figma-linux already can use local fonts.

jannuary avatar Feb 06 '22 11:02 jannuary

@jannuary , But local fonts don't work correctly. Only some variants are loaded.

Eg.: On Arial family, that contain Normal, Medium, Bold and Black, Local fonts are loading only Medium and Normal. On another, Software programs like Gimp and Inkscape, all are loaded.

AdsonCicilioti avatar Feb 24 '22 18:02 AdsonCicilioti

I mean, that's a separate issue.

jannuary avatar Feb 25 '22 05:02 jannuary

Actually the problem of this issue is the figma-linux recognizing the fonts some different way.

Here is an example of using the Akrobat font family in official Figma on Windows, and in browser on linux + figma-linux-font-helper:

Снимок экрана_2022-03-04_11-50-25
Fonts are recognized the same way here: font family: "Akrobat", font weight: "Semibold"

And here is how fonts are recognized by figma-linux:

Снимок экрана_2022-03-04_11-48-28
Снимок экрана_2022-03-04_11-52-25

It thinks like it's are different fonts, not the font weights. That's the recognition problem we are have here: font family "Akrobat" but without needed font weights, OR font family: "Akrobat Semibold". But if i choose "Akrobat Semibold" it will broke the font on Figma on Windows, and in browser on linux + figma-linux-font-helper

Actually it is really different font files installed on system. I mean:
Akrobat-ExtraLight.ttf Akrobat-SemiBold.ttf Akrobat-Thin.ttf Akrobat-Black.ttf Akrobat-Bold.ttf Akrobat-ExtraBold.ttf Akrobat-Light.ttf Akrobat-Regular.ttf
But it would be great if figma-linux will understand them like font weights.

That's why i asked you to integrate the figma-linux-font-helper, because it works well.

Flashwalker avatar Mar 09 '22 20:03 Flashwalker

Exactly! I have the same problem, With Arial variants.

AdsonCicilioti avatar Mar 22 '22 17:03 AdsonCicilioti

Yeah I agree, same issue here which prevents collaborating if you do choose to use Figma Linux' font names.

The alternative would be to replicate this behaviour upstream into https://github.com/Figma-Linux/figma-linux-font-helper

paulpopus avatar Jun 02 '22 18:06 paulpopus

I have the same issue, and really running out of idea on how to fix it

mod avatar Jun 05 '22 22:06 mod

Please, what's the name of font named "??????" in Figma ?

sadkodev avatar Jun 08 '22 13:06 sadkodev

I just stumbled upon this issue and I find it very problematic. I'm willing to work on a fix, could you just point me in the right direction?

megawebmaster avatar Jul 28 '22 12:07 megawebmaster

+1 here, this prevents me from using Figma LInux as I would have to manually change every single font on my projects.

It would be great if Figma Linux could detect the font variants correclty and not consider each variant as a single, separate font.

idiazroncero avatar Jan 16 '23 09:01 idiazroncero

I'm running into this same issue where the variations of the fonts are loaded with their full postscript name instead of the font name (same as https://github.com/Figma-Linux/figma-linux/issues/255#issuecomment-1063327349).

It looks like the postscript name is being returned in this function https://github.com/Figma-Linux/figma-linux/blob/afcdbf2c4d5b6b1e66816528cde6e783f239d115/src/main/Fonts/TTF.ts#L144 . However, I don't see the fontName, which I think is what should be displayed, making its way through the return chain.

What changes need to be made to load font families such that they match the other Figma clients? Would the maintainers be open to spinning it out into a separate ticket?

Zalgo2462 avatar Sep 12 '23 23:09 Zalgo2462