MATLAB Answers


Write bold text in a textbox - guide

Asked by Valerio Biscione on 12 Jun 2014
Latest activity Edited by per isakson
on 13 Jun 2014
How to write a bold text in a textbox in guide, from the code? Is this possible?


Sign in to comment.

2 Answers

Answer by per isakson
on 12 Jun 2014
Edited by per isakson
on 13 Jun 2014
 Accepted Answer

light | {normal} | demi | bold
Weight of text characters. MATLAB uses this property to select a
font from those available on your particular system. Setting this
property to bold causes MATLAB to use a bold version of the font,
when it is available on your system.
uicontrol( 'style', 'text', 'string', 'abcd1234', 'fontweight', 'bold' )
Original answer:
AFAIK: No, but see

  1 Comment

Thank you, that actually solves my problem completely.

Sign in to comment.

Answer by Image Analyst
on 12 Jun 2014

Try this (untested)
set(handles.text1, 'FontWeight', 'Bold');

  1 Comment

Thank you, I will try it.

Sign in to comment.