Skip to content
Discussion options

You must be logged in to vote

Hm, is it possible that you're using the wrong family name?

I tried this and it works for me:

  1. Create a file test.slint with the following contents:
import "fa-regular-400.ttf";

export component AppWindow inherits Window {
  default-font-size: 48px;
  Text {
     font-family: "Font Awesome 6 Free";
     text: @tr("test");
  }
}
  1. Download fa-regular-400.ttf from https://github.com/FortAwesome/font-awesome-sass/tree/master/assets/fonts/font-awesome
  2. Preview with slint-viewer test.slint

I see this on macOS. I don't have font awesome installed on my system.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Tricked-dev
Comment options

@Tricked-dev
Comment options

Answer selected by Tricked-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
a:text Text rendering, fonts, Text input (mS,bF)
2 participants