HISE Logo Forum
    • Categories
    • Register
    • Login

    BOLD ITALIC FONT?

    Scheduled Pinned Locked Moved Solved Scripting
    5 Posts 3 Posters 68 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.
    • ChazroxC
      Chazrox
      last edited by

      How do I set a font BOLD and ITALIC?

      Screenshot 2025-04-10 at 6.01.14 AM.png

      ustkU A 2 Replies Last reply Reply Quote 0
      • ustkU
        ustk @Chazrox
        last edited by ustk

        @Chazrox

        By direct call to the type:
        (if available in the font...)

        HiseSnippet 891.3ocsVstaaaCElzIZnwXcXEaO.B9WtCFARwNtoXXnwWR1LVbhPcVv.FFJXHorIhDoAEcSLJ5C292db1av1ghxUxKIdsFqDvF5b+CGdNeRQZEkmkozHb8KWNmiveo2jkRyrAyHBIZzPD9q7FSxLbsuSU+kyIYYbFBi24GsJv6sKJ+7WupOIgHo7RUHzUJAkelHUXJ0Fc7OKRRNkv3WJRq3cmiGQUxApD0B.O63EflSn2PlxOmXcqlG5mHYyP3uyK7nWRIcnG1Mj245trWv5dM8HZ6XRa1KOjzN+wtsa2Fg+hSXBiROwPL7LHo8UrkSlotU5JvUhLw0IbqPHZBTYmZzfYhDVzplSFBg2MprUsiqU8sdiELwGzW1x95bC9kQTsogqsIHEVERAaFR3JPZWGjdl2DpVL2TZwhmuoPaIhBWCRNqnZ+QMuAJogKM6mRtgepFDFAx5XBk2raPPKe3um+80qC2SYF+2Rz9QDIOIz+G7WE4TtYfJctRBBMa3L2vFSc2y6mwMQPmx7Z0BiPxaFuPRMBkr4zmW+c02a59wvzQujjlA2EWbfvA8Y1LaGNxsDjerVJrcpxVvq3ZFQRZzx+f.WXLM41dIhoRN6R9cfKmewqG26LvieKnUPqCBr+98V9Mn.h0bViGKm98UIrMk39Wb1PWZO3SJuiLjDAcSYdzk8Naz.Wt67Ii4OhBXgte0pz8Qpx6sWkqtx7UxyUF9Exl4Wc0eec++so33GzlcZQqRR35GzrkXPuo.aJWjdMW2BlASVv+fivhv5aWdO91U0Edpa3shiJ4Hovbwbdg782+PES7vS+xngDCwtRVnC7aNWaDVHfGxeKPB5VP2yaHO6FiZdtuEqI.MkI25SWs9Z2TPBX47IdtsFzck7jhiWVU3VAy.rhd3+DDmwESmYrRQ4Ts2ig.3lTrEIDy5DVVp7BCPedM1AKCfLSXVVkp++MVrOVH9LuHggN6gwXsG.ivswmCLVv8+TuShi4TSI.206ze8yCQOxwTNcLwnEvbf24KRm.zfTNTcILcXmyw0rSjN4.qrsCLgKY4B+MbJLFZkwEFCWYDkRnZ0antsK6aWdRtF.Sx729tG7Y.freHJeiqZeNEdY2anz0S08B7fsMv1aafc11.ObaCr61F3K11.O5+NP62hzagQk5VaPnwQmjSWgwmHIvDX9zJ5ePyWbrj
        

        Or embed your own font per type:

        Engine.loadFontAs("{PROJECT_FOLDER}Fonts/normal.ttf", "Normal");
        Engine.loadFontAs("{PROJECT_FOLDER}Fonts/weight200.ttf", "Weight200");
        Engine.loadFontAs("{PROJECT_FOLDER}Fonts/weight400.ttf", "Weight400");
        Engine.loadFontAs("{PROJECT_FOLDER}Fonts/bold.ttf", "Bold");
        Engine.loadFontAs("{PROJECT_FOLDER}Fonts/italic.ttf", ,"Italic");
        Engine.loadFontAs("{PROJECT_FOLDER}Fonts/bold_italic.ttf", "BoldItalic");
        

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

        ChazroxC 1 Reply Last reply Reply Quote 0
        • ChazroxC
          Chazrox @ustk
          last edited by

          @ustk ahh. I see. Thank You sir!

          1 Reply Last reply Reply Quote 0
          • A
            aaronventure @Chazrox
            last edited by

            @Chazrox I would suggest you always embed your fonts when shipping the plugin. This will minimise or eliminate the chances of something being wrong on the end user's computer.

            OSes don't all have the same fonts, and even so, that may change with time, and why would you wanna leave yourself open to these issues anyway?

            Refer to the system fonts for testing, but when you decide which one(s) to use, put the font files in the Images folder and include them in the script like in the post above.

            ChazroxC 1 Reply Last reply Reply Quote 2
            • ChazroxC
              Chazrox @aaronventure
              last edited by

              @aaronventure great advice. Embedding all my fonts from now on.

              1 Reply Last reply Reply Quote 0
              • ChazroxC Chazrox marked this topic as a question
              • ChazroxC Chazrox has marked this topic as solved
              • First post
                Last post

              43

              Online

              1.7k

              Users

              11.7k

              Topics

              101.8k

              Posts