Closed GoogleCodeExporter closed 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
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
In that release, it is just CPTextStyle, not CPMutableTextStyle.
Original comment by drewmcco...@mac.com
on 9 Feb 2011 at 10:43
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
Original issue reported on code.google.com by
sander.t...@gmail.com
on 9 Feb 2011 at 8:10