Issue with Font Not Displaying in Exported HISE Project
-
You need to use "Starlight" as the ID.
Engine.loadFontAs("{PROJECT_FOLDER}Fonts/Starlight.ttf", "Starlight");
-
@d-healey its still the same issue as soon as I reopen the plugin it its gone
-
@treynterrio
If you do it with Look and Feel it should work. -
@Oli-Ullmann hmm do you've an example how?
-
@treynterrio The strange thing is, I can save it as a .json file but it won't load again when I reopen the plugin
-
@treynterrio
I am sorry, there is no Look and Feel for Labels. But you could do it with a Panel and the PaintRoutine. Here is a snippet:HiseSnippet 1040.3ocsV01aZbDDdOruz.sVpQppe9De5bEhBF+BQoUk2aoEaSMzn9M2k8F3V4kcQ2smcPQVJ+p5uq9Onc16.tiFbREpgO.d14smY14YVOLPwfvPU.wpv3kK.h0WXOZoT621mxkj9cHVes8HP6LFdi1omRpcFzrmSkpjVKWPCCAOhk0A+nwVq7GRh+7W+PKpfJYP5QDxqUbFLfOmqSOcXiegKD8ndvX97LVeZi9LkrsRnhPbcfcExBJ6N5L3Jpwrb1jehF5Sr9F6Zf2I0qSO6zZ0X0eYc1ELZcfUcxEUNgN0qVcvah2omcJkX8rtdbsJXjlpgPh0gsTdKG4qdPljfWyC4SDfQnJYDl4ji6oDdlRzbJosOW3MbcCKjfQYXZ66fj12WYeI2iu47z13WFqvI0irMPqbaCuC1BdUyBuJYf2NfjUFHcXBjdg8HV.egNUiAOetceoFBlRw6orPIwVRt+Lmca75Fj5xyo2A8BPgMd3ddkJkbvuN9UEJzUNiKgxBE0yLfzLzs3aGdy0+b21ius20C5z8lGMmG9sX0EH3y70k05oEK4TbyAEMwAuyC0N8kKhzNeuy5jOCzsUyWnjnfawXsYrdHUBhpOo4IpisO4OKGB5g3Uh9FUjFQs6zHISyUR2YGW3sExeOMvghgS6yCMwZfhQEsTQRuPWSwluP9YlXXJH2L3ujS0yKG2NRzmL75l7SX4G74ZXs6dAzGZhtIAOCqxMtlLIysnFkKdbIGJ1bXXED.dFv+no.JvkBDwNqQriRF6ooxCTBW15xtjy8TQDDWOqp5.XgoncMwBC0Gr2l.+3X1lJDSPpm61oBiRFPbkRCWKciSWgGK37uUMc5N0sJVBHXmpMaDB9PN5JilOABxVrFCwo9soR1OMUJKSmkzRxXnol45qW.xmh+SV0GMztUnBMUGS5NZEoa.cBHHbjZ8Y1w8PRLdwER1igPz0eqeGpltNDXzvLr.BzbC3s5.2i6MS3w4s6.g2oUKvUfat1v39wR3a1rY8cCZrLcMa4FlwsMHIjdOzWNL.v6eLy4lhvIYg6Q1MC3TgSKANKXp5M49Yam63os3b+b6jIuLImbUlj+teswCbOsep1+ngOXnRom7cMHu+xLbMpxKRP0aua07BzJE3TxVKzLKsjgb8xruP8+1B2+qP7E1C4Zl+twXtcfQbh3SAFW8L0Q1cmNEX5T.dncue+SyaRjjcsytjpC337f8UQyGgqEY.lcINkXXoV4L7oD4JFYSGXDH8hE9a7yJkUMxVqTVcsRxbJKPcKKgEZdH74wmfXRFOCm29RirS007uz97b7c4aYrsC0643I6qi01WGOcec7r80wy2WGuXecr9G2Qy+1TyHsZdBsgPtbX23UlVVckTbBLdZk7OXe3IbJ
-
@treynterrio Have you tried another font?
-
This works.
HiseSnippet 1014.3ocyV0saaaCElxIJXQccXEnO.B9J2AiLIauj3NTzz3e5bWRrQTVwvtIfVhxlHRjBRTswKHWLf89zWs9FzcHkjkbRVZpwF1zE1jm+3GO7imCmDycIII7XjlwYKhHHsuV2YASLu2bLkgF0Go8M5GiSDjXyLQGtHBmjP7PZZa7Zo.ss2Do993KODGfYtjRQHza4TWxQzPpnT5jC9YZPvPrG4LZXEq6bvHWNqGOfmB3YCcKTD18B7LxIXoY0zQ+DNYNR66zasWW6cm1xpU2o6Q5PZ4aSZO0eOOaq1Vcvs1u8t93cswcQZaMviJ3wNBrfj.A8Pt2Bm472yxVf2RSnSCHxI1HGXkyDi5MmF3MoH4jfPZaNoLUsQVp5o5GS8nKkWlx9VkByROplzzpcePx9K.RZUfzlYP5I5NtwzHQoFIddj9HFbB5igylpPIyVTsOrgdONXASrSH9BxvXXxROZz1xpoI7yy9QCCiArYTFYm.N1aHX0qRZT+pImN9MC5c14CGeT+AmdsTdx2Cau3.5r4hcDB+5MMquTPcUffS5Dg46vwliXQohivSIAluvr.GXOOknF0KUCQYe.JcUHovvDhbyFQhETRBf7v23L9ja30UFlvWcevEIUp9yqhllYJeO0SLGzX2tUtj4Dk9ma1tStDA4R47rfadlbVyxP6P+cYns6riUUohEApU7Txrz.bbgGXX0YgvNPpyE9Ol3Uux5jcM.TZc4v7ubsDf9fmpBpONHgXbsJgVIi5HHgQ+8YzR04YT6Vce.ozUb6e5TpJ3+OKk5mxbETNyjyNgKHiYMdlwUFaabsg4MU46em5jYzXdP.I9NUKK+EeeN1fkFNkD2DNUCRIKMDttuZMjsdX0PbyNfqXHmMhQEiiH4yGxC7j0FjiucEGTNCAF8Ki5iEXYQnbYkLFPVex6fx9Ykj1VuOI4BAOBpf2iGFwYxHn8HgR6iyKXo3UHpmrAT4cWzkHMcsIv5sPN32fAxCxkFoHLHEOCVns9y7lNYzLoj54RJ3oxZgK4onBJVYKnlGrjfIQdNACUvOjfPY2CaiTdi4Faj+nxFoj4+ewF41sPflWbOvXwpczj85yU.TzUZiHaUvRnhEUeKvWPaNq6sM2CEhOQeBU3N+twXs6.i.48eCLl+3fGqOv2m3JJA3l5C+008k.elk+TdpfxlcLVDSkLsSRCcfRctDX0YLRPh77tlj2lM2p372gv7TS9D7kqzVNWKWocgRTH1MletaVgI4yO9JkD.SLEeba3chvbSajpXU07bH7ZnyccWMT2xwVqqisWWG6rtN9Cqqi6ttNt25539edGkOV8UoBdX10FD53ICTU20zFvjUKTrUzeQBOfE2
-
@orange yes
-
This post is deleted! -
@Oli-Ullmann still doesn't work like this as soon as I reopen the plugin its gone its not saved
-
@orange yeah this works but its also gone when I reopen the plugin. I tried other fonts and it's still the same. I write my text in Arial in the Input and for the other Label I use the other font. My plan is to create something like a note that stays until you change it
-
-
-
@treynterrio
That is strange. But you have now marked the problem as solved. What was your solution? How did it work? -
@treynterrio If you set preset save to true in the label, the first initial setting of the plugin and the first preset in the preset list should have this label value. Otherwise, it will give this error because there is no preset.
-
Do UI fonts actually have to be manually included in the project and not display if the user hasn't installed the exact same font? I thought it was somehow compiled into the vst by default
-
@Morphoice You need to include it in your project's images folder and load them into your project via scripting.
-
@d-healey oops. I never did that. is there a fallback to a system font if I havent included it? or will the UI labels just not work?
-
@Morphoice Yeah I think it falls back to Oxygen or Lato which is included in HISE, or perhaps a system font - knowing Christoph it's probably Comic Sans :p
-
@d-healey I am using Oxygen though, so that doesn't need to be included manually?
-