APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Print bold text post and replies

Return to the Print bold text thread
Login to post to this thread

How to print text in bold format?
Alberto Porras
5 Posts

I have some doubts on how to print a text with a bold format. I have tried using the code:
_view.print("\033[1mTestText"), which, according to the source I have looked that up, it should allow me to print the text "TestText" in bold letters in a java environment, but it doesn't work in EjsS as I have tried.

Is there any other way to code this kind of format?

Thank you in advance,

OSP Projects:
Open Source Physics - EJS Modeling
Physlet Physics
Physlet Quantum Physics
STP Book