Forum
    • Categories
    • Register
    • Login

    Icon Fonts - Syntax error in unicode escape sequence

    Scheduled Pinned Locked Moved Solved Scripting
    15 Posts 4 Posters 411 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.
    • David HealeyD
      David Healey
      last edited by

      I tried using parseInt and String.getIntValue, but no joy. We don't have a .fromCharCode function as far as I can tell.

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

      1 Reply Last reply Reply Quote 0
      • C
        clevername27 @David Healey
        last edited by clevername27

        @d-healey JUCE 6 doesn't fully support Unicode. There's a great free, ASC icon font, Modern Pictograms, that works well with HISE.

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

          @clevername27 said in Icon Fonts - Syntax error in unicode escape sequence:

          JUCE 6 doesn't fully support Unicode.

          I don't think JUCE 8 does either, at least not with fonts. But this particular situation is supported.

          The Modern Pictograms look nice but seems their license makes it unusable for my projects.

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

          C 1 Reply Last reply Reply Quote 0
          • C
            clevername27 @David Healey
            last edited by

            @d-healey I own a commercial license for the font that I'm not using - you're welcome to it.

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

              @clevername27 Thanks, won't help me though, I need to be able to distribute it with my source code and they don't have a license for that.

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

              C ustkU 2 Replies Last reply Reply Quote 1
              • C
                clevername27 @David Healey
                last edited by

                @d-healey Doh.

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

                  @d-healey this works if you need concatenation

                  Console.print("\\" + "u" + "e5c3");
                  

                  EDIT: I have not tested if the font draws correctly that being said

                  Hise made me an F5 dude, any other app just suffers...

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

                    @ustk said in Icon Fonts - Syntax error in unicode escape sequence:

                    EDIT: I have not tested if the font draws correctly that being said

                    It gives the same result as "\\" + "ue5c3" which I mentioned in the first post.

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

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

                      @d-healey Yeah just tested and I didn't help going further...

                      Hise made me an F5 dude, any other app just suffers...

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

                        Following from Dan's suggestion I had Claude take a look and it extended String.fromCharCode to support hex strings in addition to integers. This has solved the issue.

                        PR

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

                        1 Reply Last reply Reply Quote 0
                        • David HealeyD David Healey marked this topic as a question
                        • David HealeyD David Healey has marked this topic as solved
                        • First post
                          Last post

                        24

                        Online

                        2.2k

                        Users

                        13.5k

                        Topics

                        117.4k

                        Posts