Code Monkey home page Code Monkey logo

Comments (24)

ChugunovRoman avatar ChugunovRoman commented on July 21, 2024 1

Hi, is the ~/.fonts directory supported? In openSUSE+KDE, it is the default directory that fonts are installed.

Hi. You can add any directory in the settings:
image

from figma-linux.

ChugunovRoman avatar ChugunovRoman commented on July 21, 2024

Hi. My app support local fonts through C++ module.
Support fonts extension: ttf, ttc, otf, pfb.
You need put your fonts into /usr/share/fonts folder or $HOME/.local/share/fonts
After, need relaunch app.
I tested this feature, and it is work great.

from figma-linux.

jackyting825 avatar jackyting825 commented on July 21, 2024

Hi. My app support local fonts through C++ module.
Support fonts extension: ttf, ttc, otf, pfb.
You need put your fonts into /usr/share/fonts folder or $HOME/.local/share/fonts
After, need relaunch app.
I tested this feature, and it is work great.

OK,I have tried, put the font file into the /usr/share/fonts/ directory can not be used, but put it into the current user ~ /.local/share/fonts/ directory can be used normally.May be the reason for the operating system, my system is deepin linux. In addition, there is a tab The bug is that when you open a project for the first time, there is no tab tag at the top, I hope to solve it. Thank you for your help.

from figma-linux.

ChugunovRoman avatar ChugunovRoman commented on July 21, 2024

try it:

sudo chmod 755 /usr/share/fonts -R

If launch app from a terminal, what outputting in terminal?

from figma-linux.

jackyting825 avatar jackyting825 commented on July 21, 2024

try it:

sudo chmod 755 /usr/share/fonts -R

If launch app from a terminal, what outputting in terminal?

By default, it seems that I have not read the /usr/share/fonts/ directory. just read the font directory under the current user ~/.local/share/fonts/. I don't have this directory by default, all just prompt. This information "load fonts error: Error:Cannot open directory : /home/bz/.local/share/fonts/".And so,Create this directory and put the font file in it to read it out.

from figma-linux.

nearbrogithub avatar nearbrogithub commented on July 21, 2024

Привет! Я кинул два .ttf файла в fonts/truetype, но при выборе шрифта фигма их не видит. Кидал их туда через sudo nautilus

from figma-linux.

nearbrogithub avatar nearbrogithub commented on July 21, 2024

Подскажите пожалуйста, как исправить

from figma-linux.

ChugunovRoman avatar ChugunovRoman commented on July 21, 2024

Привет! Я кинул два .ttf файла в fonts/truetype, но при выборе шрифта фигма их не видит. Кидал их туда через sudo nautilus

Кидал в /usr/share/fonts ? Перезапускал после этого приложение?

from figma-linux.

nearbrogithub avatar nearbrogithub commented on July 21, 2024

Да, пробовал и usr/local

from figma-linux.

jackyting825 avatar jackyting825 commented on July 21, 2024

Да, пробовал и usr/local

Может читаться и использоваться под текущим пользователем ~ /.local/share/fonts/directory, Google Translate не знает, правильно ли указано ^v^

from figma-linux.

nearbrogithub avatar nearbrogithub commented on July 21, 2024

Большое спасибо! Работает! Выручили!

from figma-linux.

guoyunhe avatar guoyunhe commented on July 21, 2024

Hi, is the ~/.fonts directory supported? In openSUSE+KDE, it is the default directory that fonts are installed.

from figma-linux.

guoyunhe avatar guoyunhe commented on July 21, 2024

Hi, is the ~/.fonts directory supported? In openSUSE+KDE, it is the default directory that fonts are installed.

Hi. You can add any directory in the settings:
image

Thanks! I also noticed that if I put some invalid font files in one of these folders, the application will crash. The invalid font files are some Web TTF fonts that are not allowed to installed locally but works on the web.

from figma-linux.

ChugunovRoman avatar ChugunovRoman commented on July 21, 2024

If you put not valid font, the app just say in terminal what can not open the font. But the app not should crash.
Can you send me description of the error or screenshot?

from figma-linux.

guoyunhe avatar guoyunhe commented on July 21, 2024

If you put not valid font, the app just say in terminal what can not open the font. But the app not should crash.
Can you send me description of the error or screenshot?

The error message is simply "Segment fault, core dumped", no other information. The font is here: https://cloud.guoyunhe.me/index.php/s/Fee3H7X6T8XHGrQ (expires in 24 hours)

from figma-linux.

ChugunovRoman avatar ChugunovRoman commented on July 21, 2024

I put this font into a fonts directory. And the app successful read and displat it.
Sometimes I notice that the app display that message, but continue work without crash. It's fine.

from figma-linux.

guoyunhe avatar guoyunhe commented on July 21, 2024

I put this font into a fonts directory. And the app successful read and displat it.
Sometimes I notice that the app display that message, but continue work without crash. It's fine.

I was using AppImage 0.4.0 package with openSUSE Tumbleweed.

Operating System: openSUSE Tumbleweed 20190214
KDE Plasma Version: 5.15.0
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.0
Kernel Version: 4.20.7-1-default
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz
Memory: 31.2 GiB

from figma-linux.

ChugunovRoman avatar ChugunovRoman commented on July 21, 2024

Ok. I try to test my app on this disto

from figma-linux.

guedressel avatar guedressel commented on July 21, 2024

We just experienced the same behaviour as @guoyunhe: "Segment fault, core dumped" when we put DINPro-*.ttf files into the fonts directory.

(Running on current Version via Ubuntu PPA: 0.4.0)

from figma-linux.

guoyunhe avatar guoyunhe commented on July 21, 2024

We just experienced the same behaviour as @guoyunhe: "Segment fault, core dumped" when we put DINPro-*.ttf files into the fonts directory.

(Running on current Version via Ubuntu PPA: 0.4.0)

DINPro looks like a web font, even though it is TTF format. What I did is to request a desktop fonts from the branding team, which don't have limitation of usage.

from figma-linux.

ChugunovRoman avatar ChugunovRoman commented on July 21, 2024

@jackyting825, @guoyunhe, @guedressel try 0.6.1 release

from figma-linux.

eldilibra avatar eldilibra commented on July 21, 2024

@ChugunovRoman are there any plans to support web (.woff) fonts in figma-linux?

from figma-linux.

ganifladi avatar ganifladi commented on July 21, 2024

had the same issue (some fonts installed to ~/.local/share/fonts not working) and solved it by changing the file extension from uppercase .TTF to lowercase .tff and updating the font cache with sudo fc-cache -f -v afterwards.

from figma-linux.

srezasm avatar srezasm commented on July 21, 2024

Hi, is the ~/.fonts directory supported? In openSUSE+KDE, it is the default directory that fonts are installed.

Hi. You can add any directory in the settings: image

I can't find this settings page in figma-linux.
There is a settings option under my profile picture at there top corner of the screen, but there is no font directory setting in there

from figma-linux.

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.