how do i use font awesome with a font import #3263
Answered
by
tronical
Tricked-dev
asked this question in
Q&A
-
i currently have this: import "../assets/fa-regular-400.ttf";
import "../assets/Font Awesome 6 Brands-Regular-400.otf";
import "../assets/Font Awesome 6 Free-Regular-400.otf"; and then export component AppWindow inherits Window {
default-font-family: "Font Awesome";
Text {
font-family: "Font Awesome";
text: @tr(" test");
}
} this doesn't work sadly. when i install the font as a system font it works but that's obviously not what i want when shipping the application how could i fix this / what other methods are there to get icons? |
Beta Was this translation helpful? Give feedback.
Answered by
tronical
Aug 11, 2023
Replies: 1 comment 2 replies
-
Hm, is it possible that you're using the wrong family name? I tried this and it works for me:
I see this on macOS. I don't have font awesome installed on my system. ![]() |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Tricked-dev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hm, is it possible that you're using the wrong family name?
I tried this and it works for me:
test.slint
with the following contents:fa-regular-400.ttf
from https://github.com/FortAwesome/font-awesome-sass/tree/master/assets/fonts/font-awesomeslint-viewer test.slint
I see this on macOS. I don't have font awesome installed on my system.