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 Updated to NodeBB v4.3 + New Features

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 1 Watching
  • 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.
  • Shadowblitz16S Offline
    Shadowblitz16S Offline
    Shadowblitz16
    wrote on 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.

    the_T 1 Reply Last reply
    0
    • Shadowblitz16S Shadowblitz16

      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.

      the_T Offline
      the_T Offline
      the_
      wrote on 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
      • Shadowblitz16S Offline
        Shadowblitz16S Offline
        Shadowblitz16
        wrote on last edited by
        #3

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

        jsulmJ the_T 2 Replies Last reply
        0
        • Shadowblitz16S Shadowblitz16

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

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on 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
          • Shadowblitz16S Shadowblitz16

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

            the_T Offline
            the_T Offline
            the_
            wrote on 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
            • Shadowblitz16S Offline
              Shadowblitz16S Offline
              Shadowblitz16
              wrote on 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

              • Login

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