BOLD ITALIC FONT?
-
How do I set a font BOLD and ITALIC?
-
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");
-
@ustk ahh. I see. Thank You sir!
-
@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.
-
@aaronventure great advice. Embedding all my fonts from now on.
-
C Chazrox marked this topic as a question
-
C Chazrox has marked this topic as solved