Giter Club home page Giter Club logo

Comments (3)

danielfeather avatar danielfeather commented on May 28, 2024

Hi @minnix

I installed this on my Ubuntu 20.04 LTS machine just yesterday and all seems to be working fine, the only change I had to make to get this working was to add my users fonts folder in the configuration file as it was not in there when I checked the config file at /etc/figma-linux/fonthelper.

{
  "port": "18412",
  "directories": [
    "/usr/share/fonts",
    "/home/USERNAME/.local/share/fonts"
  ]
}

Then just run sudo systemctl restart fonthelper.service

Hope this helps

from figma-linux-font-helper.

phun-ky avatar phun-ky commented on May 28, 2024

Same in my end, 18.04 with same config ad @danielfeather but no local fonts in figma linux :(

from figma-linux-font-helper.

danielfeather avatar danielfeather commented on May 28, 2024

@phun-ky Some ideas that might help with troubleshooting. Try and simulate what Figma will try and do to get the list of fonts and the specific font files. The Font Helper is a HTTP service so you can simulate the HTTP requests that Figma will perform to get a list of local fonts and download the font file when requested. You can try the requests in your browser of choice and it should respond just fine.

From looking at the source code this is the endpoint that Figma will use to get a list of local fonts. So if your not seeing your local fonts in the list then I would try this endpoint and see what you get.
List fonts: http://localhost:18412/figma/font-files
Response

{
    "version": 4,
    "fontFiles": {
        "/home/danielfeather/.local/share/fonts/NeueHaasDisplayRoman.ttf": [
            {
                "family": "Neue Haas Grotesk Display Pro",
                "id": "Neue Haas Grotesk Display Pro",
                "italic": false,
                "postscript": "NeueHaasDisplay-Roman",
                "stretch": 5,
                "style": "55 Roman",
                "weight": 400
            }
        ],

Get specific font file: http://localhost:18412/figma/font-file?file=/home/danielfeather/.local/share/fonts/NeueHaasDisplayRoman.ttf
Response is the raw font file with a content type of application/octet-stream

I would try these endpoints and see if the fonts you seek are listed and can be read by Figma.

Hope this helps 😄

from figma-linux-font-helper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.