Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. What font format do I need to load them in css?
Forum Update on Monday, May 27th 2025

What font format do I need to load them in css?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shadowblitz16
    wrote on 20 Apr 2017, 01:12 last edited by
    #1

    does anybody know what format qt uses for fonts?
    I would like to include a compatible format font in my resources so I can directly load it from css without having to convert it.

    T 1 Reply Last reply 20 Apr 2017, 04:08
    0
    • S Shadowblitz16
      20 Apr 2017, 01:12

      does anybody know what format qt uses for fonts?
      I would like to include a compatible format font in my resources so I can directly load it from css without having to convert it.

      T Offline
      T Offline
      the_
      wrote on 20 Apr 2017, 04:08 last edited by
      #2

      @Shadowblitz16

      TrueType Fonts (*.ttf) did always work for me on different platforms

      -- No support in PM --

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Shadowblitz16
        wrote on 20 Apr 2017, 17:56 last edited by
        #3

        well I can't load .ttf files from qss without converting them in code first.

        J T 2 Replies Last reply 21 Apr 2017, 04:53
        0
        • S Shadowblitz16
          20 Apr 2017, 17:56

          well I can't load .ttf files from qss without converting them in code first.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 21 Apr 2017, 04:53 last edited by
          #4

          @Shadowblitz16 Convert to what? Or do you mean you first need to store the fonts from your resource file as files somewhere?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • S Shadowblitz16
            20 Apr 2017, 17:56

            well I can't load .ttf files from qss without converting them in code first.

            T Offline
            T Offline
            the_
            wrote on 21 Apr 2017, 05:14 last edited by
            #5

            @Shadowblitz16

            If it's a custom font you have to embed and load it into your app to use it.

            -- No support in PM --

            1 Reply Last reply
            0
            • S Offline
              S Offline
              Shadowblitz16
              wrote on 21 Apr 2017, 19:21 last edited by
              #6

              well I did include it in my resources.
              but I was asking to see if I could convert it into a qss compatible format so I didn't need to load it.
              anyways thanks. I will just load my ."ttf" file.

              1 Reply Last reply
              0

              1/6

              20 Apr 2017, 01:12

              • Login

              • Login or register to search.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved