How can I store an Italic-font text in a file?
1 view (last 30 days)
Show older comments
Hello everyone,
How can I use fprintf to store a string in a file (( with ITALIC font ))?
0 Comments
Answers (1)
Stephen23
on 15 Feb 2020
Edited: Stephen23
on 15 Feb 2020
"How can I use fprintf to store a string in a file (( with ITALIC font ))?"
You can't, because textfiles do NOT contain any formatting information.**
You could write a textfile using some standard markup language which includes formatting, e.g. markdown, HTML, etc.
** Just to be absolutely clear: textfiles do NOT store any information about the typeface (font), the fontsize, text color, text bold, text italic, or any other formatting. By definition, textfiles store a long vector of character codes (which are just numbers representing what letter it is... and NOTHING else).
0 Comments
See Also
Categories
Find more on Entering Commands in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!