Forum
    • Categories
    • Register
    • Login

    Changing combobox font

    Scheduled Pinned Locked Moved General Questions
    27 Posts 9 Posters 3.2k 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.
    • JayJ
      Jay @David Healey
      last edited by

      @d-healey following

      Joansi Villalona

      1 Reply Last reply Reply Quote 0
      • ossian1961O
        ossian1961 @David 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

              https://github.com/christophhart/HISE/commit/cd0eb5a7a2ce7ee79576f66a3b9d0c79d6285b12

              David HealeyD U 2 Replies Last reply Reply Quote 2
              • David HealeyD
                David Healey @Christoph Hart
                last edited by

                @Christoph-Hart Today is a productive day :D

                Free HISE Bootcamp Full Course for beginners.
                YouTube Channel - Public HISE tutorials
                My Patreon - 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

                      Hise made me an F5 dude, browser just suffers...

                      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

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

                          @Lindon Font options is under the items list.

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

                          LindonL 1 Reply Last reply Reply Quote 0
                          • LindonL
                            Lindon @David 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

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

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

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

                              LindonL 1 Reply Last reply Reply Quote 0
                              • LindonL
                                Lindon @David 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

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

                                  @Lindon July! Oh you're living in the past, definitely grab the latest.

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

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

                                    @d-healey LOl - yeah thats me - old and infirm and living in the past...

                                    HISE Development for hire.
                                    www.channelrobot.com

                                    1 Reply Last reply Reply Quote 1
                                    • ustkU
                                      ustk
                                      last edited by

                                      @Christoph-Hart The text alignment property would be nice to have too ;)

                                      Hise made me an F5 dude, browser just suffers...

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

                                        @ustk it surely would - but that was my problem (being old and infirm - and not up to date with my HISE releases) but I'm pretty sure many people will tell you I'm at least the first two. of those...

                                        HISE Development for hire.
                                        www.channelrobot.com

                                        1 Reply Last reply Reply Quote 0
                                        • U
                                          udalilprofile @Christoph Hart
                                          last edited by

                                          @Christoph-Hart give snippet, please)

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

                                            @udalilprofile Use look and feel

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

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

                                            28

                                            Online

                                            2.1k

                                            Users

                                            13.0k

                                            Topics

                                            112.5k

                                            Posts