HISE Logo Forum
    • Categories
    • Register
    • Login

    Fonts

    Scheduled Pinned Locked Moved General Questions
    14 Posts 5 Posters 2.0k 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.
    • LindonL
      Lindon
      last edited by

      That right there is worth the price of entry.....

      HISE Development for hire.
      www.channelrobot.com

      1 Reply Last reply Reply Quote 1
      • Christoph HartC
        Christoph Hart
        last edited by

        BTW, you'll need to give it a .ttf file that resides in your Images subfolder.

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

          Has there been a change in the way fonts are loaded recently? I noticed that font style isn't being applied any more with a particular font.

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

          1 Reply Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart
            last edited by

            No I haven't touched this code since ages. Can you upload an example project that shows this behaviour?

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

              Well I just created a little test project to demonstrate the problem to you and typically the problem doesn't happen - so I guess it must be something else in my project that's causing the issue :-) fun!

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

              1 Reply Last reply Reply Quote 0
              • Dan KorneffD
                Dan Korneff
                last edited by

                Can someone explain Engine.loadFontAs(String fileName, String fontId)
                I assume the font name needs to be in quotes. do you need to include the file path, or just the name? Whats the fontID?

                Dan Korneff - Producer / Mixer / Audio Nerd

                LindonL d.healeyD 2 Replies Last reply Reply Quote 0
                • LindonL
                  Lindon @Dan Korneff
                  last edited by

                  @dustbro

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

                  HISE Development for hire.
                  www.channelrobot.com

                  1 Reply Last reply Reply Quote 2
                  • d.healeyD
                    d.healey @Dan Korneff
                    last edited by d.healey

                    @dustbro Font ID is a name you can give to the font that you should then use throughout your project (instead of using the font's actual name). Christoph implemented this to prevent issues with font handling between different OS.

                    You should put your fonts in your project's Images folder. I usually put them in sub-folder called Fonts.

                    Using Lindon's example I would the write

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

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

                    1 Reply Last reply Reply Quote 2
                    • Christoph HartC
                      Christoph Hart
                      last edited by

                      You should put your fonts in your projects Images folder.

                      Yes, definitely put them there, otherwise it won't be embedded in the binary and will use a fallback font on the end users machine, which defaults to Comic Sans MS.

                      ustkU 1 Reply Last reply Reply Quote 0
                      • ustkU
                        ustk @Christoph Hart
                        last edited by

                        …which defaults to Comic Sans MS.

                        😱 😱 😱

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

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

                          @ustk yeah really ulgy (yep ugly spelt wrong..)

                          HISE Development for hire.
                          www.channelrobot.com

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

                          36

                          Online

                          1.7k

                          Users

                          11.7k

                          Topics

                          101.9k

                          Posts