Forum
    • Categories
    • Register
    • Login

    Custom font in WIN vs macOS

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 32 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.
    • pelleP
      pelle
      last edited by

      Hi!
      I’m trying to compile the same plugin on both Mac and Windows. I’ve noticed that the issue is probably related to path separators — macOS uses  /  while Windows uses  \ . However, when I change it, the code editor throws an error. How can I handle this?

      Engine.loadFontAs("{PROJECT_FOLDER}Fonts\BrittiLight.ttf","BrittiRegular");
      Engine.setGlobalFont("BrittiRegular");
      
      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @pelle
        last edited by

        @pelle Use / on both systems.

        @pelle said in Custom font in WIN vs macOS:

        However, when I change it, the code editor throws an error.

        Don't tease us, tell us what the error is :p

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        pelleP 1 Reply Last reply Reply Quote 0
        • pelleP
          pelle @David Healey
          last edited by

          @David-Healey Solved! I've simply moved the font outside the font folder and removed the "Font/".

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

          32

          Online

          2.2k

          Users

          13.4k

          Topics

          116.9k

          Posts