Nandulucky / core-plot

Automatically exported from code.google.com/p/core-plot
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Custom Font for Axis labelTextStyle #553

Closed GoogleCodeExporter closed 9 years ago

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 issue reported on code.google.com by vigneshr...@gmail.com on 23 Jul 2013 at 8:58

GoogleCodeExporter commented 9 years ago
http://stackoverflow.com/questions/17820548/has-anyone-used-custom-font-for-axis
-label-text-in-core-plot

Original comment by eskr...@mac.com on 31 Jul 2013 at 11:22