HISE Logo Forum
    • Categories
    • Register
    • Login

    Custom font not showing

    Scheduled Pinned Locked Moved Scripting
    5 Posts 2 Posters 256 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.
    • P
      paper_lung
      last edited by

      Hi all, I'm using a custom font but it's not displaying. I've placed the font in the project folder under Images/Fonts. Here's what I'm writing:

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

      What am I missing?

      LindonL 1 Reply Last reply Reply Quote -1
      • LindonL
        Lindon @paper_lung
        last edited by

        @paper_lung said in Custom font not showing:

        Hi all, I'm using a custom font but it's not displaying. I've placed the font in the project folder under Images/Fonts. Here's what I'm writing:

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

        What am I missing?

        nothing. - but you ill need to refer to it in your code - our set the font in your interface.

        HISE Development for hire.
        www.channelrobot.com

        P 1 Reply Last reply Reply Quote 1
        • P
          paper_lung @Lindon
          last edited by

          @Lindon Thanks. I'm mainly doing this for the MIDI assignment menu (right click on any control) as I'm using images for the rest of the UI, any ideas how I reference that?

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

            @paper_lung you may well need to LAF that, if its available...

            HISE Development for hire.
            www.channelrobot.com

            P 1 Reply Last reply Reply Quote 1
            • P
              paper_lung @Lindon
              last edited by

              @Lindon That's it, thanks. For reference this is what I added:

              const var laf = Engine.createGlobalScriptLookAndFeel();
              laf.setGlobalFont("AvenirNextFont", 15.0);
              
              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              18

              Online

              1.7k

              Users

              11.8k

              Topics

              102.4k

              Posts