Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Printing with times new roman font?
Printing with times new roman font? [message #19661] Wed, 31 December 2008 13:00 Go to next message
kbyte is currently offline  kbyte
Messages: 87
Registered: July 2008
Member
Hi all,
I am programming a function to print a document genrated by code like this:

PrinterJob pd("Impressao de atestado de vida [pensoes]");
Draw& w=pd.GetDraw();
w.StartPage();

w.DrawText(900,200,"XXXXXX",Courier(160));

w.EndPage();


Why cant I print using Times new Roman font?

Courier font works but not Times new roman


Thanks

Alex
Re: Printing with times new roman font? [message #19672 is a reply to message #19661] Sun, 04 January 2009 14:49 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
w.DrawText(900,200,"XXXXXX",Roman(160));

w.DrawText(900,200,"XXXXXX",Font().FaceName("Times New Roman").Height(160));

Mirek
Re: Printing with times new roman font? [message #19747 is a reply to message #19672] Mon, 12 January 2009 08:53 Go to previous message
kbyte is currently offline  kbyte
Messages: 87
Registered: July 2008
Member
Great!

Thank you!

Alex
Previous Topic: Context menu in a embedded class?
Next Topic: Focus on the PromptYesNo dlg
Goto Forum:
  


Current Time: Tue Apr 16 19:49:21 CEST 2024

Total time taken to generate the page: 0.01946 seconds