NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Charting

Charting Support for NinjaTrader Advanced Charting.

Reply
 
Thread Tools Display Modes
Old 08-13-2012, 07:55 PM   #1
oldhiker
Member
 
Join Date: Aug 2011
Location: Brisbane, Australia
Posts: 78
Thanks: 5
Thanked 8 times in 6 posts
Default Draw text - font name?

I am trying to use the 10.4.4.34 Draw Text(), but I cannot give the correct name to "Font font,". I does not accept "Font.Arial".
Can someone please provide a list of font names that will be accepted in this line of code. Just the common names, mainly Arial and like fonts.
Thank you from 'oldhiker'
PS. The 'font reference' in the manual does not load.
Last edited by oldhiker; 08-13-2012 at 08:05 PM.
oldhiker is offline  
Reply With Quote
Old 08-13-2012, 08:08 PM   #2
NinjaTrader_Matthew
NinjaTrader Customer Service
 
NinjaTrader_Matthew's Avatar
 
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,770
Thanks: 158
Thanked 562 times in 553 posts
Default

It will accept any fonts that you have installed in your computer.

The correct syntax would be:

new Font("Arial", 12)
NinjaTrader_Matthew is offline  
Reply With Quote
Old 08-13-2012, 09:43 PM   #3
oldhiker
Member
 
Join Date: Aug 2011
Location: Brisbane, Australia
Posts: 78
Thanks: 5
Thanked 8 times in 6 posts
Default

Hello Matthew,
Thank you for your speedy reply. I would never have used the syntax you showed. It worked. I am so happy.
Perhaps this could be included in the on-line Help Guide.
When clicking on the 'reference' in the parameters box in the Help Guide, the link did no load. While this does not matter for me at this point, it may be a problem for other users.
Thank you
oldhiker is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Draw Arrow and Draw Text on same bar rsksmiles Indicator Development 1 04-21-2012 12:08 PM
Changing text box font resets outline width and background opacity MikeInMA Suggestions And Feedback 3 01-10-2011 02:08 AM
Font size in Draw methods sgordet Strategy Development 6 01-04-2011 05:05 PM
Draw symbol font increase mohdfraz General Programming 1 01-21-2009 07:25 AM
DrawText...Font...how do you use the font param? Can't find any examples funk101 General Programming 8 05-29-2007 07:10 AM


All times are GMT -6. The time now is 11:28 AM.