HISE Logo Forum
    • Categories
    • Register
    • Login

    showModalTextInput Ignores Global Font?

    Scheduled Pinned Locked Moved Bug Reports
    6 Posts 3 Posters 208 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.
    • clevername27C
      clevername27
      last edited by clevername27

      Or maybe I don't understand Global Font…

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

        Seems to work here

        f2482eee-7ef8-4bcb-a564-1fb3619f0eba-image.png

        I'm using Christoph's example, with my own font - https://forum.hise.audio/topic/8068/script-panel-label-keyboard-entry/25?_=1713051043849

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

        clevername27C 1 Reply Last reply Reply Quote 1
        • clevername27C
          clevername27 @d.healey
          last edited by clevername27

          @d-healey Thank you for your reply. Weird. Doesn't work on my end. It's always seems to be 12 point.

          6ec50930-9ccc-4baa-b68f-d3331ff972ce-image.png Screenshot 2024-04-14 at 11.03.35.png

          Screenshot 2024-04-14 at 11.04.16.png

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @clevername27
            last edited by

            @clevername27 said in showModalTextInput Ignores Font Styling:

            @d-healey Thank you for your reply. Weird. Doesn't work on my end. It's always 12 point, 0xFFFFFFFF. (Also looks like Oxygen instead of the default global font I set.)

            6ec50930-9ccc-4baa-b68f-d3331ff972ce-image.png Screenshot 2024-04-14 at 11.03.35.png

            Screenshot 2024-04-14 at 11.04.16.png

            Where are you setting the font?

            HISE Development for hire.
            www.channelrobot.com

            clevername27C 1 Reply Last reply Reply Quote 1
            • clevername27C
              clevername27 @Lindon
              last edited by clevername27

              @Lindon I set the font globally here, in the INIT callback.

              1121d967-8a7a-4e87-b350-6e385e73012a-image.png

              a393b8ca-be24-4782-ab07-d6b4ea50a346-image.png

              As per your suggestion, I tried specifying the font explicitly for the showModal, and there's definitely a difference. Now the font is at the correct size, and I guess whatever font was being used simply renders much larger.

              bca19e69-4b2a-4d23-85ed-cf969ab2e115-image.png

              41e93197-d388-4da0-8687-3977b929da32-image.png

              LindonL 1 Reply Last reply Reply Quote 0
              • LindonL
                Lindon @clevername27
                last edited by Lindon

                @clevername27 try

                textField.set("FontName","SFDisplayRegular");

                and make sure that SFDisplayRegular is defined as the name of the font in your

                Engine.loadFontAs();

                statement at the start of your init.

                HISE Development for hire.
                www.channelrobot.com

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

                29

                Online

                1.8k

                Users

                12.0k

                Topics

                104.5k

                Posts