figma-linux
figma-linux copied to clipboard
Font helper support (enhancement)
Hi, could you please add support for this font helper: https://github.com/tryvin/figma-linux-font-helper
This is unnecessary - Figma-linux already can use local fonts.
@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.
I mean, that's a separate issue.
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:
Fonts are recognized the same way here: font family: "Akrobat", font weight: "Semibold"
And here is how fonts are recognized by figma-linux:
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.
Exactly! I have the same problem, With Arial variants.
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
I have the same issue, and really running out of idea on how to fix it
Please, what's the name of font named "??????" in Figma ?
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?
+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.
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?