HISE Logo Forum
    • Categories
    • Register
    • Login

    loadFonts is deprecated ???

    Scheduled Pinned Locked Moved General Questions
    7 Posts 2 Posters 700 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.
    • staiffS
      staiff
      last edited by

      hello !
      as said the title the Engine.loadFonts is deprecated and tells that it will be replaced by loadFontsAs.
      Well.
      but when typing loadFontsAs(...)

      i have an error telling that argument number mismatch.

      Excuse me i'm French.

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

        @staiff Yes loadFont is deprecated because it caused issues with font naming between different OS. To use loadFontAs you need to pass a name as the second parameter - this can be any name you want. - https://forum.hise.audio/topic/160/fonts/4

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

        1 Reply Last reply Reply Quote 0
        • staiffS
          staiff
          last edited by

          Engine.loadFontAs("{PROJECT_FOLDER}Fonts/Bordeaux.ttf", Bordeaux.ttf); = error.
          still not understand...

          Excuse me i'm French.

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

            @staiff Try Engine.loadFontAs("{PROJECT_FOLDER}Fonts/Bordeaux.ttf", "Bordeaux");

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

            1 Reply Last reply Reply Quote 0
            • staiffS
              staiff
              last edited by

              i did: File not found ;)

              Excuse me i'm French.

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

                @staiff said in loadFonts is deprecated ???:

                i did: File not found ;)

                Where have you put the Bordeaux.ttf file?

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

                1 Reply Last reply Reply Quote 0
                • staiffS
                  staiff
                  last edited by staiff

                  in the image folder as explained here: http://hise.audio/manual/ScriptPanel.php

                  section 1.1.4: fonts.

                  OoooooooooooooooooooKayyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy :/

                  Images folder + Fonts folder INSIDE images folder. Not directly inside Image folder....

                  Excuse me i'm French.

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

                  55

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  101.8k

                  Posts