- In the Editor tab of the App Designer click on the Public Property and insert the follwing code
MATLAB App Designer does not render new fonts
7 views (last 30 days)
I needed an illegible font for an app that requires a password, and there wasn't any in the App Designer default fonts, so I donwloaded one. I installed an openType font, restarted MATLAB (as in here), tested the font in a figure window using the "text" function, and it works. However, in the App Designer, the font appears in the list of fonts for an Edit Field, but is rendered as the default font. Is it even possible to use new fonts in App Designer? If it is, what am I missing?
A print of what's happening (roll to the right, this print turned unnecessarily big...)
Subhadeep Koley on 9 Aug 2019
Hi, follow the steps below to achieve the same
2. Right click on the text field > go to EditFieldValueChanging callback
3. paste the following code inside the callback
app.password = [app.password, c(end:end)];
set(app.EditField, 'Value', [repmat('*', 1, length(c))]);
4. Save & Run the App
The Actual value of the password is stored inside the variable app.password.