|
Rajeev Narayanan wrote:
> I am using cprintf statement and need to use different font size for the
> text. how can i do it?
There is no cprintf function. Do you mean fprintf() or sprintf() ?
If you are writing data (text) into a file, then font size used will depend
upon the tool you use to examine the file. You may wish to use Rich Text
Format (RTF) and examine the file with a word or document processor, or you
may wish to use HTML and examine the file with a browser.
If you are creating text to be used by the text() or legend() functions, you
can possibly use tex or latex formatting codes to change the text size. The
default 'Interpreter' property for text() objects is LaTex. Note: Matlab uses
a fairly restricted version of tex and latex.
If you are creating text to be used as entries in a uicontrol() object, then
you can use HTML on a per-line basis. However, if you use HTML in uicontrols,
then Matlab does not take the meaning of the HTML into account in determining
the Extent property of the control, and it assumes that all the lines of a
list-box or pop-up will be the same height, so you will likely run into
problems rendering such controls properly; oh yes, and uicontrol of style edit
are likely to wrap the HTML completely wrongly, breaking the HTML...
|