Multiple Font Sizes in for a label in app designer
3 次查看(过去 30 天)
显示 更早的评论
I am using a label in Appdesigner. However I want to use multiple Font Sizes in one label. How can this be done?
I use the code below. Using the Label in the title of a plot is work well, I get different FondSize, However when I use the same Label in appdesigner it does not work???
Thx for your support
Label = sprintf('%s',['fontsize{12}', num2str(5,5555,'%1.4f'),'\fontsize{10}',num2str(6)]);
%% as title in figure it works
figure();
plot((1:10).^2);
title(Label);
%% does not work for a label in app designer
app.Label.Text = Label;
0 个评论
采纳的回答
Alberto Cuadra Lara
2022-6-9
Hello Leon,
I'm not sure if this is possible, because the font size is a property of the Label class. My approach would be to use two labels aligned using the desired font sizes.
Best,
Alberto
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!