Forum
    • Categories
    • Register
    • Login

    letter spacing / kerning on ScriptLabel

    Scheduled Pinned Locked Moved Feature Requests
    10 Posts 4 Posters 38 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.
    • lalalandsynthL
      lalalandsynth
      last edited by

      We need ScriptLabels to support the same kerning factor Graphics already has via setFontWithSpacing (PERCENT value / 100, e.g. 1% → 0.01), because labels can be dynamic. Painting with g.setFontWithSpacing only works for static chrome.

      Today (verified in source):

      ScriptLabel has fontName, fontSize, fontStyle, alignment, etc. — no spacing property
      LabelWrapper::updateFont only uses withHeight / setFont
      Graphics.setFontWithSpacing already applies Font.setExtraKerningFactor(spacing)

      Add a ScriptLabel property, e.g. letterSpacing (float, same meaning as setFontWithSpacing’s spacing argument).
      In LabelWrapper::updateFont, apply font.setExtraKerningFactor(letterSpacing) before setFont.
      Keep that kerning when the label draws text (including editable/dynamic).

      Having an issue with this, would be nice to have so one can design freely.

      https://trikk.studio/
      https://www.instagram.com/trikkstudio/

      David HealeyD dannytaurusD 3 Replies Last reply Reply Quote 0
      • David HealeyD
        David Healey @lalalandsynth
        last edited by

        @lalalandsynth said in letter spacing / kerning on ScriptLabel:

        g.setFontWithSpacing only works for static chrome

        This can be dynamic too, what are you trying to achieve? I pretty much never use labels.

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

        lalalandsynthL 1 Reply Last reply Reply Quote 0
        • dannytaurusD
          dannytaurus @lalalandsynth
          last edited by

          @lalalandsynth Is this what you're looking for?

          CleanShot 2026-07-27 at 14.27.28.gif

          Meat Beats: https://meatbeats.com
          Klippr Video: https://klippr.video

          ChazroxC lalalandsynthL 2 Replies Last reply Reply Quote 3
          • ChazroxC
            Chazrox @dannytaurus
            last edited by

            @dannytaurus Hey I need that! lol

            1 Reply Last reply Reply Quote 0
            • dannytaurusD
              dannytaurus @lalalandsynth
              last edited by dannytaurus

              @lalalandsynth Here's a PR, see if it fits your needs.

              https://github.com/christophhart/HISE/pull/1006

              Full disclosure: this is 100% Fable. I don't know a lot about text rendering in HISE, so take it with a grain of salt.

              Meat Beats: https://meatbeats.com
              Klippr Video: https://klippr.video

              1 Reply Last reply Reply Quote 1
              • lalalandsynthL
                lalalandsynth @David Healey
                last edited by lalalandsynth

                @David-Healey YEs, I can do it if i paint it , but ok, do you always just paint text ?
                Wondering what would be more suitable for Ui delivery , a text box or just painted , also dynamic text.

                I guess both methods should be available, depending on dev requirements.?

                https://trikk.studio/
                https://www.instagram.com/trikkstudio/

                David HealeyD 1 Reply Last reply Reply Quote 0
                • lalalandsynthL
                  lalalandsynth @dannytaurus
                  last edited by

                  @dannytaurus Exactly that

                  https://trikk.studio/
                  https://www.instagram.com/trikkstudio/

                  1 Reply Last reply Reply Quote 0
                  • David HealeyD
                    David Healey @lalalandsynth
                    last edited by

                    @lalalandsynth said in letter spacing / kerning on ScriptLabel:

                    YEs, I can do it if i paint it , but ok, do you always just paint text ?

                    Yes pretty much. I tend to have a lot of stuff automated so I don't really think about it. All my knobs use one look and feel which paints the label and value. All my panels use one paint routine which paints labels or headers, etc.

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

                    lalalandsynthL 1 Reply Last reply Reply Quote 1
                    • lalalandsynthL
                      lalalandsynth @David Healey
                      last edited by lalalandsynth

                      @David-Healey I wonder if there is a consensus on this or a mix of methods, probably a mix and personal preference ?

                      https://trikk.studio/
                      https://www.instagram.com/trikkstudio/

                      David HealeyD 1 Reply Last reply Reply Quote 0
                      • David HealeyD
                        David Healey @lalalandsynth
                        last edited by

                        @lalalandsynth It depends on the specifics of what you're doing. If you already have a paint routine or look and feel for the component then it's probably better to include the value/label in that rather than add another component to the UI. But if you're using filmstrips a label might be easier - although you probably still have to add scripting anyway.

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

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

                        21

                        Online

                        2.4k

                        Users

                        13.9k

                        Topics

                        120.8k

                        Posts