HISE Logo Forum
    • Categories
    • Register
    • Login

    Issue with Font Not Displaying in Exported HISE Project

    Scheduled Pinned Locked Moved Solved General Questions
    40 Posts 6 Posters 1.6k 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.
    • T
      treynterrio
      last edited by

      Hi there,
      I’m encountering an issue with a custom font in my HISE project. The font file (e.g., Starlight Alaska.ttf) is placed in the project folder and loaded using the following code:

      Engine.loadFontAs("{PROJECT_FOLDER}Starlight.ttf", "Starlight");
      

      In my project, I input text into a text box, and that text is then displayed in a label using the loaded font. This works perfectly within HISE during development. However, once I export the project (as a standalone or plugin), the font is not applied to the label, and it defaults to a generic font.

      Has anyone encountered a similar issue or can provide advice on how to ensure the custom font works correctly in the exported version of the project?

      Thank you for your help!

      orangeO 1 Reply Last reply Reply Quote 0
      • orangeO
        orange @treynterrio
        last edited by

        @treynterrio You need to create a folder named Fonts under the Images folder and copy it into it. I think you copied it directly to the Images folder.

        So the folder path will be like:

        {PROJECT_FOLDER}Fonts/Starlight.ttf
        

        Also, the "Embed Image Files" option must be selected in the Settings section.

        develop Branch / XCode 13.1
        macOS Monterey / M1 Max

        T 2 Replies Last reply Reply Quote 0
        • T
          treynterrio @orange
          last edited by

          @orange said in Issue with Font Not Displaying in Exported HISE Project:

          {PROJECT_FOLDER}Fonts

          yup that was the problem. thanks 🙏🏼

          1 Reply Last reply Reply Quote 0
          • T
            treynterrio @orange
            last edited by

            @orange now I have another problem the font is loaded but as soon as I reopen the plugin the font is gone and I can't type it in again

            LindonL orangeO 2 Replies Last reply Reply Quote 0
            • LindonL
              Lindon @treynterrio
              last edited by

              @treynterrio you'll need a copy in the FHISE images folder dont move a font there, or your OS wont be able to find it.

              HISE Development for hire.
              www.channelrobot.com

              T 1 Reply Last reply Reply Quote 0
              • T
                treynterrio @Lindon
                last edited by

                @Lindon I already have a copy there. I can use it in the exported plugin but its gone when I reopen it

                LindonL 1 Reply Last reply Reply Quote 0
                • LindonL
                  Lindon @treynterrio
                  last edited by

                  @treynterrio gone how gone?

                  HISE Development for hire.
                  www.channelrobot.com

                  T 1 Reply Last reply Reply Quote 0
                  • T
                    treynterrio @Lindon
                    last edited by

                    @Lindon I write something in a label, this is displayed in another label. When I reopen the plugin it no longer appears.

                    LindonL 1 Reply Last reply Reply Quote 0
                    • LindonL
                      Lindon @treynterrio
                      last edited by

                      @treynterrio said in Issue with Font Not Displaying in Exported HISE Project:

                      @Lindon I write something in a label, this is displayed in another label. When I reopen the plugin it no longer appears.

                      I really have no idea what this means.. sorry.

                      HISE Development for hire.
                      www.channelrobot.com

                      T 1 Reply Last reply Reply Quote 0
                      • T
                        treynterrio @Lindon
                        last edited by

                        @Lindon It should stay in the Label

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

                          @treynterrio Is your label set to saveInPreset?

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

                          T 1 Reply Last reply Reply Quote 0
                          • T
                            treynterrio @d.healey
                            last edited by

                            @d-healey yes i try to save it now in a .js file to reopen it after restart

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

                              @treynterrio I mean is the saveInPreset property for the label set to Enabled

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

                              T 1 Reply Last reply Reply Quote 0
                              • T
                                treynterrio @d.healey
                                last edited by

                                @d-healey yes it is

                                1 Reply Last reply Reply Quote 0
                                • orangeO
                                  orange @treynterrio
                                  last edited by orange

                                  @treynterrio it’s not clear to figure it out.

                                  Snippet please

                                  develop Branch / XCode 13.1
                                  macOS Monterey / M1 Max

                                  T 1 Reply Last reply Reply Quote 0
                                  • T
                                    treynterrio @orange
                                    last edited by treynterrio

                                    @orange

                                    HiseSnippet 1047.3ocsV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9+th92630inHmuxcyHJ9DNQcKA8nAmBW3D6cpSUz6u5EV5KCR3Dc4WBLuWlo.ZrJs90rhUnX5UEeO8+smG9Po3Kbmvz9K1NGqrENZ5C+HvwrGUet6vvPpuNmf64N5O+37BJ5JYhFV9cNA1ABsKtWjrbJ7gH9TH5BAkaFrgtNCT64VlylJvTpHvd3efeYJaaN6jor8ZknkD+X4M9oyflmselUBvIgsEbe3asfy31qm9xqyKguh3Fe+xt58.986JvN6JPucEX2cEXucE3K2UfG8z.Mej2IIZ4xzwFD57ICsKMcbFJLaJrcqn+EP4IETV
                                    
                                    T 1 Reply Last reply Reply Quote 0
                                    • T
                                      treynterrio @treynterrio
                                      last edited by

                                      @treynterrio it doesn't even work when I save it in a .json file and load it onOpen

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

                                        @treynterrio

                                        You need to use "Starlight" as the ID.

                                        Engine.loadFontAs("{PROJECT_FOLDER}Fonts/Starlight.ttf", "Starlight");

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

                                        T 1 Reply Last reply Reply Quote 1
                                        • T
                                          treynterrio @d.healey
                                          last edited by

                                          @d-healey its still the same issue as soon as I reopen the plugin it its gone

                                          Oli UllmannO 1 Reply Last reply Reply Quote 0
                                          • Oli UllmannO
                                            Oli Ullmann @treynterrio
                                            last edited by Oli Ullmann

                                            @treynterrio
                                            If you do it with Look and Feel it should work.

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

                                            20

                                            Online

                                            1.8k

                                            Users

                                            12.1k

                                            Topics

                                            105.0k

                                            Posts