How can I set the default Font for app designer?

1 visualización (últimos 30 días)
Josh Zagorski
Josh Zagorski el 10 de Mzo. de 2020
Respondida: Parth Saraf el 22 de Jun. de 2023
We have a company font that I would like to use, it's already in the system. What's the best way to mark all components in app designer with this font? Or use when I add new components?
  1 comentario
Frank
Frank el 22 de Jun. de 2023
Josh, I have a very similar question which has not yet received any answers or comments. It is at
In my case, I want to install a new custom font and use it in apps. It is either a quirky problem or I am misunderstanding something. So far I have not got an answer...

Iniciar sesión para comentar.

Respuestas (1)

Parth Saraf
Parth Saraf el 22 de Jun. de 2023
Hi Josh,
You can try using this lines of code:
defaultFontName = 'Helvetica';
defaultFontSize = 12;
root = matlab.ui.RootProperties;
root.DefaultUicontrolFontName = defaultFontName;
root.DefaultUicontrolFontSize = defaultFontSize;
matlab.ui.RootProperties = root;
Hope this helps!

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by