HISE Logo Forum
    • Categories
    • Register
    • Login

    Font spacing using Graphics.setFontWithSpacing

    Scheduled Pinned Locked Moved Scripting
    4 Posts 3 Posters 287 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.
    • andrei sA
      andrei s
      last edited by

      Hello!

      I'm trying to implement the font inside Hise instrument, but have an issue with font spacing.
      What code i need to use before Graphics.setFontWithSpacing?
      When i use Graphics.setFontWithSpacing - it shows "Unknown function 'setFontWithSpacing" message in console.

      How can i solve that?

      Also, what's the difference between String fontId and String fontName?

      Engine.loadFontAs("{PROJECT_FOLDER}Fonts/STYALIGHT.otf", "STYALIGHT");
      Graphics.setFontWithSpacing("STYALIGHT", 13, 10);
      
      d.healeyD 1 Reply Last reply Reply Quote 1
      • d.healeyD
        d.healey @andrei s
        last edited by

        @problema

        Functions in the graphics class will only work inside paint routines or look and feel functions.

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

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

          @d-healey Have the same problem. And what can be the solution for spacing in this case? THank you a lot

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

            @nouslou Are you calling the function inside a paint routine or LAF function?

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

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

            22

            Online

            1.7k

            Users

            11.7k

            Topics

            101.9k

            Posts