HISE Logo Forum
    • Categories
    • Register
    • Login

    Changing combobox font

    Scheduled Pinned Locked Moved General Questions
    27 Posts 9 Posters 2.9k 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.
    • d.healeyD
      d.healey
      last edited by

      I don't think so but you could always create a custom combo box with a panel

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

      1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart
        last edited by

        I think it's overdue to make something like Engine.setGlobalFont() so people can use their customised font for almost every text thingie.

        1 Reply Last reply Reply Quote 2
        • Dan KorneffD
          Dan Korneff
          last edited by

          Did this ever happen? I'm looking to change my combo box font as well.

          Dan Korneff - Producer / Mixer / Audio Nerd

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

            @dustbro I don't see a globalfont function in the API yet

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

            1 Reply Last reply Reply Quote 1
            • Christoph HartC
              Christoph Hart
              last edited by

              The development branch is your friend here:

              Link Preview Image
              HISE/hi_scripting/scripting/api/ScriptingApi.h at 93d23444d031788bf0bdd9741effa56ba0f9a006 · christophhart/HISE

              The open source framework for sample based instruments - HISE/hi_scripting/scripting/api/ScriptingApi.h at 93d23444d031788bf0bdd9741effa56ba0f9a006 · christophhart/HISE

              favicon

              GitHub (github.com)

              Currently it uses the font for the Combobox texts and the Slider Value Popups (there are also new methods to change their appearance, but I need to look up how I implemented it a few weeks ago and write a doc).

              d.healeyD 1 Reply Last reply Reply Quote 1
              • d.healeyD
                d.healey @Christoph Hart
                last edited by d.healey

                @christoph-hart Is there a method to change the text size of a combo box? Because my custom font is coming out tiny. Also I noticed that setting the global font also affects some of the text of the HISE interface too!

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

                JayJ ossian1961O 2 Replies Last reply Reply Quote 0
                • JayJ
                  Jay @d.healey
                  last edited by

                  @d-healey following

                  Joansi Villalona

                  1 Reply Last reply Reply Quote 0
                  • ossian1961O
                    ossian1961 @d.healey
                    last edited by

                    @d-healey said in Changing combobox font:

                    @christoph-hart Is there a method to change the text size of a combo box? Because my custom font is coming out tiny. Also I noticed that setting the global font also affects some of the text of the HISE interface too!

                    Same here. When I investigated around the Hise sources I found that ComboBox is a JUCE module and there's no way (apparently) to set the font size after using the globalfont function as you can see from the code :(

                    void ComboBox::paint (Graphics& g)
                    {
                        getLookAndFeel().drawComboBox (g, getWidth(), getHeight(), isButtonDown,
                                                       label->getRight(), 0, getWidth() - label->getRight(), getHeight(),
                                                       *this);
                    
                        if (textWhenNothingSelected.isNotEmpty()
                             && label->getText().isEmpty()
                             && ! label->isBeingEdited())
                        {
                            g.setColour (findColour (textColourId).withMultipliedAlpha (0.5f));
                            g.setFont (label->getLookAndFeel().getLabelFont (*label));
                            g.drawFittedText (textWhenNothingSelected, label->getBounds().reduced (2, 1),
                                              label->getJustificationType(),
                                              jmax (1, (int) (label->getHeight() / label->getFont().getHeight())));
                        }
                    }
                    

                    https://www.kontakthub.com/label/Imagik-Sound/
                    https://mirtklaar.bandcamp.com/

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

                      Yep we are now needing this too

                      HISE Development for hire.
                      www.channelrobot.com

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

                        @Lindon Bump Bump - REALLY needing this now.

                        HISE Development for hire.
                        www.channelrobot.com

                        1 Reply Last reply Reply Quote 0
                        • Christoph HartC
                          Christoph Hart
                          last edited by

                          font.gif

                          Link Preview Image
                          - added font property to combobox · christophhart/HISE@cd0eb5a

                          The open source framework for sample based instruments - - added font property to combobox · christophhart/HISE@cd0eb5a

                          favicon

                          GitHub (github.com)

                          d.healeyD U 2 Replies Last reply Reply Quote 2
                          • d.healeyD
                            d.healey @Christoph Hart
                            last edited by

                            @Christoph-Hart Today is a productive day :D

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

                            1 Reply Last reply Reply Quote 1
                            • Christoph HartC
                              Christoph Hart
                              last edited by

                              Yeah, just crawling through the stuff that has piled up...

                              LindonL 1 Reply Last reply Reply Quote 1
                              • LindonL
                                Lindon @Christoph Hart
                                last edited by

                                @Christoph-Hart OK I can set the font, any way I can change the font size?

                                HISE Development for hire.
                                www.channelrobot.com

                                ustkU 1 Reply Last reply Reply Quote 0
                                • ustkU
                                  ustk @Lindon
                                  last edited by ustk

                                  @Lindon Actually you can ;)

                                  Untitled.jpeg

                                  Can't help pressing F5 in the forum...

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

                                    @ustk woah - mine looks NOTHING like that:

                                    556c00e5-a0dc-4f76-a5ee-06f19ff9cda8-image.png

                                    -- am I on some earlier scriptnode release?

                                    HISE Development for hire.
                                    www.channelrobot.com

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

                                      @Lindon Font options is under the items list.

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

                                      LindonL 1 Reply Last reply Reply Quote 0
                                      • LindonL
                                        Lindon @d.healey
                                        last edited by Lindon

                                        @d-healey yeah I see that - but NOT on my implementation - it stops at the list...

                                        like this:

                                        8efb9132-add7-4bea-ae0c-1b620c8f8aee-image.png

                                        HISE Development for hire.
                                        www.channelrobot.com

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

                                          @Lindon When did you last rebuild? My version is from the 25th of September.

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

                                          LindonL 1 Reply Last reply Reply Quote 0
                                          • LindonL
                                            Lindon @d.healey
                                            last edited by Lindon

                                            @d-healey ..yeah mines from 11 july....look like I will have to re-build but I dont see anything in git hub about this

                                            HISE Development for hire.
                                            www.channelrobot.com

                                            d.healeyD 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            27

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            102.3k

                                            Posts