@Mighty23 Place your font in the image folder of your project, then use Engine.loadFontAs()
.
The font will be embedded in the binary:
https://docs.hise.audio/scripting/scripting-api/engine/index.html#loadfontas
Posts made by ustk
-
RE: How is the font distributed in the final product?
-
RE: Multiple different text colours/formats in one text box?
Another way is to use a MarkdownRenderer and a panel, but it's not highly customisable.
So a simple panel with a neat paintRoutine is still a good choice -
RE: snex_filter module with curve display buffer
@aaronventure Yeah thanks, I know PluginDoctor but that's more about the project needs indeed
-
RE: snex_filter module with curve display buffer
@Christoph-Hart As I'm getting this topic again, do you have any thought on the feasibility/willingness for integrating such a thing as either a new node, or the existing
core.snex_node
? -
RE: getGlobalPosition Ain't Global
Confirmed, I use this method for years with no issues
-
RE: HISE 4.0 - Wish List - Add yours.
Since running our own EQ is one of the main thing in DSP:
- A way to get the EQ curve out of a
snex_node
with a display buffer
I remember asking for a
snex_eq
a while ago but, @Christoph-Hart, you said that you'd rather not do this for some reasons related to code maintenance or something like that which I understand. Also, since a proprietary EQ DSP might (often) contain some nonlinearities, this might not be compatible with an "EQ only node". Sosnex_node
is a nice way to go, just missing a display buffer... - A way to get the EQ curve out of a
-
RE: Engine.openWebsite(String url) - return value?
@Lindon following the API
void ScriptingApi::Engine::openWebsite(String url) { URL u(url); if (u.isWellFormed()) { auto& tmp = u; auto f = [tmp]() { tmp.launchInDefaultBrowser(); }; new DelayedFunctionCaller(f, 300); } else { reportScriptError("not a valid URL"); } }
it reports an error only when the URL is wrongly formatted.
Since here it is the machine that responds with an error, it might be something like there's no default browser. But even in this case, wouldn't the computer ask which application to use? I don't know...
Might it be a security that prevents the app to open anything on the mac? like a missing hardened runtime or something similar in the jucer/xcode when building the app?
-
RE: Facing product download dilemma/issues
Alright guys, so finally Bunny CDN has an API for the storage part with secure/unique download link generation, so I go with it. (might not be the best but it's not the question for now, and since I will probably never have big sample based instruments but more DSP stuff, the size does not matter
-
RE: Facing product download dilemma/issues
@gorangrooves yeah I understand the principle of CDNs and this is exactly why I jumped into it when realising the slowness of my website. Then after some tests and readings, I realised that only a few specific websites actually need one, and the fact that it is cached in several places is in the end not a good argument (which is weird to hear at first, I agree) A good optimisation of the website is way better than a CDN with a "natively messy and not optimised wordpress" website.
-
RE: Facing product download dilemma/issues
@d-healey @aaronventure @gorangrooves Thanks guys! That's indeed what I needed to hear...
As for the licensing part, it is all done and working using a php plugin I've made.
So really the only thing I need is generating a the fresh link for identified users.I will check the different storage solutions/CDNs you gave me in the next days to see which one fits my workflow the best. I tried Bunny CDN last week (just for the automated site acceleration part, not third party storage) and it was catastrophic for my website. I am not saying Bunny was the cause of the poor loading response by itself, but maybe more CDNs in general. Through this little journey I learned that almost no websites need a CDN and people often think it will help while in reality it doesn't (I've read this from different sources)
So since I only need a storage, a CDN might not be relevant to me (except if they offer separate pricing tiers so I don't use the habitual acceleration) -
Facing product download dilemma/issues
Hey guys,
I am setting up my system so my (future) customers can download their products using my manager app.
All is good and works on the app side, but... I have some questions about security, especially the kind of attack using a script to download your stuff hundreds of time and shut down your site (and also php injection).-
I created a download folder in the website's root called, yep,
downloads
and place my products in that folder (as well as some release info, etc...). I give my wordpress product the link, and all is good and working from the manager app. But this approach seems risky to me as there's no verifications like bearer token, etc... So first question, am I right to assume this? -
The other approach I am trying is to place the product in the WP Media library, and, since this directory (
.../wp-content/uploads/woocommerce_uploads/...
) is natively protected against all kind of attacks, it feels safer to me (hey guys, pardon me, I have no knowledge in web dev). But then with this approach, the manager app can't download the product from this link, obviously. Second question, is there a way to use a header of some kind (like the JWT token) or any parameters withe theServer.downloadFile()
API to allow a user to download from this location without compromising the website? -
Third question, and now I think about it I probably should have started with this one, maybe using an external specialised storage service would simplify my life and resolve all those silly questions... ? (and remove the loads from the main server)
-
-
RE: Font and "might cause race conditions on Windows" warning
@aaronventure I built last night so yes, but I had not deleted the build folder first... I think that's the door ghosts like to pass through to haunt us by the night...
-
RE: Font and "might cause race conditions on Windows" warning
@Christoph-Hart Then a ghost it is ! I'm using the last version...
Checking again, it's weird...EDIT: Alright, somehow I wasn't on the last built...
-
Font and "might cause race conditions on Windows" warning
@Christoph-Hart I thought this has been fixed?
I still get this warning dozens of time each time I compileControl Center: Warning: default font used for getStringWidth() method (might cause race conditions on Windows) Control Center: Warning: default font used for getStringWidth() method (might cause race conditions on Windows) Control Center: Warning: default font used for getStringWidth() method (might cause race conditions on Windows) Control Center: Warning: default font used for getStringWidth() method (might cause race conditions on Windows) Control Center: Warning: default font used for getStringWidth() method (might cause race conditions on Windows) Control Center: Warning: default font used for getStringWidth() method (might cause race conditions on Windows) Control Center: Warning: default font used for getStringWidth() method (might cause race conditions on Windows) Control Center: Warning: default font used for getStringWidth() method (might cause race conditions on Windows) Control Center: Warning: default font used for getStringWidth() method (might cause race conditions on Windows) Control Center: Warning: default font used for getStringWidth() method (might cause race conditions on Windows) Control Center: Warning: default font used for getStringWidth() method (might cause race conditions on Windows) Control Center: Warning: default font used for getStringWidth() method (might cause race conditions on Windows) Control Center: Warning: default font used for getStringWidth() method (might cause race conditions on Windows) Control Center: Warning: default font used for getStringWidth() method (might cause race conditions on Windows) Control Center: Warning: default font used for getStringWidth() method (might cause race conditions on Windows) Control Center: Warning: default font used for getStringWidth() method (might cause race conditions on Windows)
The font I use is an embedded one so my guess is that embedded fonts shouldn't throw such warning, right?
-
RE: Attach broadcaster to CB item click
@Christoph-Hart I tried this using the doc example but I wasn't convinced I could do it, so now you say so
-
RE: Attach broadcaster to CB item click
@d-healey yes it makes more sense in the real context
-
RE: Attach broadcaster to CB item click
@d-healey because I still wants it to be activated with the selected item
The buttons and the combobox are not related in the project, they just show a different panel when needed -
RE: Attach broadcaster to CB item click
@d-healey here ya go
HiseSnippet 1207.3ocsWstSibCE1SfAQR6RYk5CfE+JHQyBa2tsRUUkMWfFsjKJI6R29mcclwIiKyXOx1CPTEuZ8MouC8Mfd7bIYBjDfHZ9QTN2r+Ne93iOoqT3PUJgDYUbvjPJx5qs6Ogq8p4QXbTy5HqcraQTZpDmnp5jPhRQcQVVabpQgUwMQwe92esJwmvcny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