How can I set the default Font for app designer?

5 次查看(过去 30 天)
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 个评论
Frank
Frank 2023-6-22
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...

请先登录,再进行评论。

回答(1 个)

Parth Saraf
Parth Saraf 2023-6-22
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!

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by