// new Font("Serif", Font.PLAIN, 48); doesn't work .. Program runs fine just want to change Center to different font and font size. strOut = ("Center (DC), " + SavedTime); Counter.write(strOut) Counter.newLine(); Counter.newLine();
Just want to change the font of above text.
Thank You in advance. I have tried to figure this out for a long time. I can't seem to find the answer. I am using buffered writer to write my adhoc report.
Text doesn't have a font, except if you have a context (like a GUI) where you can apply a font to text. If you have an "adhoc report" then you will have to learn how to specify fonts in the content of that report. Read the documentation for whatever interprets the data you send it.