Forum

    • Register
    • Login
    • Search
    • Categories

    Fonts

    General Questions
    5
    14
    1489
    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.
    • d.healey
      d.healey last edited by

      If I use a font installed on my machine in HISE will it be embedded with the final exported plugin or will it default to a different font on the user's machine?

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

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

        Yes. If you load it using Engine.loadFont() it will be embedded into the plugin.

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

          Excellent!

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

          1 Reply Last reply Reply Quote 0
          • Lindon
            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 Hart
              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.healey
                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 Hart
                  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.healey
                    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
                    • dustbro
                      dustbro 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

                      Lindon d.healey 2 Replies Last reply Reply Quote 0
                      • Lindon
                        Lindon @dustbro 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.healey
                          d.healey @dustbro 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 Hart
                            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.

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

                              …which defaults to Comic Sans MS.

                              😱 😱 😱

                              Tired to press F5 in the forum...
                              Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

                              Lindon 1 Reply Last reply Reply Quote 0
                              • Lindon
                                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

                                24
                                Online

                                731
                                Users

                                5.4k
                                Topics

                                50.2k
                                Posts