HISE Logo Forum
    • Categories
    • Register
    • Login

    font alignment in LAF

    Scheduled Pinned Locked Moved General Questions
    4 Posts 3 Posters 138 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.
    • M
      majetone
      last edited by

      hey everyone - I'm using a button in LAF - with the font size I want to use "centred" aligned text makes it look a little off centre (a touch too high) - is there a way to shift that text down a little bit (like a pixel or two)

      Thanks!

      d.healeyD StraticahS 2 Replies Last reply Reply Quote 0
      • d.healeyD
        d.healey @majetone
        last edited by

        @majetone Nudge the y value

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

        M 1 Reply Last reply Reply Quote 0
        • M
          majetone @d.healey
          last edited by

          @d-healey perfect Dave! Thanks! Of course! :beaming_face_with_smiling_eyes:

          1 Reply Last reply Reply Quote 0
          • StraticahS
            Straticah @majetone
            last edited by

            @majetone you can replace the + - "offsethere" with your value

            var a = [obj.area[0], obj.area[1], obj.area[2], obj.area[3]];
            
            g.drawAlignedText(obj.text, [a[0], a[1] + offsethere , a[2], a[3]], "centred");
            
            //x y width height
            

            building user interfaces in HISE :)
            web: www.vst-design.com

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

            24

            Online

            1.7k

            Users

            11.8k

            Topics

            102.5k

            Posts