Default Font question

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
qcrnd
Advanced
Posts: 214
Joined: Mon Sep 04, 2006 12:00 am

Default Font question

Post by qcrnd » Wed May 13, 2009 7:12 am

Hi
Is there any way I can change the default font. I want everything to be Arial - labels, legend ,title , Marks etc.
I know how to change each one individually but is there a way I can do the change in one place so that by default all chart fonts (Labels, symbols Marks etc) will be created with the Arial font.
Where are the default fonts taken from ?
Thanks.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Post by Sandra » Wed May 13, 2009 10:13 am

Hello gcrnd,


For the moment is not possible to change the default font for all elements of chart at once. But, you can change, font of labels, legend, title, Marks etc. individually, for all elements using property Font.Name="name of font", for example:

Code: Select all

            box1.Marks.Font.Name = "Times New Roman";
            tChart1.Legend.Font.Name = "Times New Roman";
            tChart1.Header.Font.Name = "Times New Roman";

Also, I have added your request to the wish-list to be considered for inclusion in future releases.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

qcrnd
Advanced
Posts: 214
Joined: Mon Sep 04, 2006 12:00 am

Post by qcrnd » Wed May 13, 2009 11:02 am

Hi Sandra
Ok thanks. I will handle it individually and YES , I think it will be excellent if in the future there would be such a possibility . Its only natural to want to work with the same font all over.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Default Font question

Post by Narcís » Wed Jun 06, 2012 11:13 am

Hi qcrnd,

As an update, you can already do that using DefaultFontName property, for example:

Code: Select all

      Steema.TeeChart.Texts.DefaultFontName = "Arial";
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply