HISE Logo Forum
    • Categories
    • Register
    • Login

    How is the font distributed in the final product?

    Scheduled Pinned Locked Moved Solved General Questions
    8 Posts 5 Posters 423 Views
    Loading More Posts
    • 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.
    • M
      Mighty23
      last edited by

      This post is deleted!
      ustkU 1 Reply Last reply Reply Quote 0
      • ustkU
        ustk @Mighty23
        last edited by ustk

        @Mighty23 Place your font in the image folder of your project, then use Engine.loadFontAs().
        The font will be embedded in the binary:
        https://docs.hise.audio/scripting/scripting-api/engine/index.html#loadfontas

        Can't help pressing F5 in the forum...

        1 Reply Last reply Reply Quote 1
        • M
          Mighty23
          last edited by

          @ustk thanks; What is "fontID" ?

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @Mighty23
            last edited by

            @Mighty23 It's a name you can use within your script to refer to the font. Make it something meaningful. I usually use names like "regular", "bold", "medium", etc.

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            M 1 Reply Last reply Reply Quote 0
            • M
              Mighty23 @d.healey
              last edited by Mighty23

              @d-healey ok, it make sense.

              I still can't figure out the workflow. I added myfont.ttf to the images folder and added:

              Engine.loadFontAs(myfont.ttf, medium);
              

              I have an "undefined parameter error".

              LindonL M 2 Replies Last reply Reply Quote 0
              • LindonL
                Lindon @Mighty23
                last edited by

                @Mighty23

                read the documentation.......

                Engine.loadFontAs(String fileName, String fontId)

                HISE Development for hire.
                www.channelrobot.com

                clevername27C 1 Reply Last reply Reply Quote 2
                • M
                  Mighty23 @Mighty23
                  last edited by

                  @Mighty23 said in How is the font distributed in the final product?:

                  Engine.loadFontAs(myfont.ttf, medium);

                  Engine.loadFontAs("myfont.ttf", "medium");
                  
                  1 Reply Last reply Reply Quote 0
                  • M Mighty23 marked this topic as a question on
                  • M Mighty23 has marked this topic as solved on
                  • clevername27C
                    clevername27 @Lindon
                    last edited by clevername27

                    @Lindon @d-healey I'm having an issue right now where fonts that I reference are not working in my compiled plugin. Have you guys ever experienced this? I'm using Open Type Fonts.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    48

                    Online

                    1.7k

                    Users

                    11.7k

                    Topics

                    101.8k

                    Posts