gujjula / core-plot

Automatically exported from code.google.com/p/core-plot
0 stars 0 forks source link

Custom font support #255

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
First of all, your library is great, it works like a charm!

I've got a feature request:
It would be great if you can add support for custom fonts in all the labels 
used in Core Plot.

Thanks in advanced!

Sander Theeuwes

Original issue reported on code.google.com by sander.t...@gmail.com on 9 Feb 2011 at 8:10

GoogleCodeExporter commented 9 years ago
Custom fonts are supported for textStyle properties. Use CPMutableTextStyle.

Original comment by drewmcco...@mac.com on 9 Feb 2011 at 8:49

GoogleCodeExporter commented 9 years ago
Sorry, this file isn't included in the 0.2.2 release that is was using.
I'll try to build a new SDK and see how it works

Original comment by sander.t...@gmail.com on 9 Feb 2011 at 9:34

GoogleCodeExporter commented 9 years ago
In that release, it is just CPTextStyle, not CPMutableTextStyle.

Original comment by drewmcco...@mac.com on 9 Feb 2011 at 10:43

GoogleCodeExporter commented 9 years ago
I am trying to use custom Myriad Set font for the entire app which contains 
graphs built using Core-Plot. I am unable to use the font for X & Y axis 
labelTextStyles. All the other system fonts just work fine for the 
labelTextStyles.

CPTMutableLineStyle accepts fontName & fontSize separately. So I am not sure 
how to set the custom font to labelTextStyles. It would really great if you 
someone can help me this.

CPTMutableTextStyle *axisTitleStyle = [CPTMutableTextStyle textStyle];
axisTitleStyle.color = [CPTColor blackColor];
//axisTitleStyle.fontName = 
[CGFontCreateWithFontName(kWISRFontNameForSimpleType)];
//UIFont* font = [UIFont fontWithName:@"MyriadSetText" size:20];
axisTitleStyle.fontName = kWISRFontNameForSimpleType; //(Constant with value 
@"MyriadSetText")
axisTitleStyle.fontSize = 11.0f;

This actually displays nothing in the graph. Entire Axis label Text is not 
displayed.

Original comment by vigneshr...@gmail.com on 23 Jul 2013 at 8:57