We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c82084 commit fe94a3dCopy full SHA for fe94a3d
1 file changed
examples/CorePlotGallery/src/plots/SimplePieChart.m
@@ -191,11 +191,11 @@ -(NSAttributedString *)attributedLegendTitleForPieChart:(nonnull CPTPieChart *)p
191
{
192
#if TARGET_OS_SIMULATOR || TARGET_OS_IPHONE
193
UIColor *sliceColor = [CPTPieChart defaultPieSliceColorForIndex:index].uiColor;
194
- UIFont *labelFont = [UIFont fontWithName:@"Helvetica" size:self.titleSize * CPTFloat(0.5)];
195
#else
196
NSColor *sliceColor = [CPTPieChart defaultPieSliceColorForIndex:index].nsColor;
197
- NSFont *labelFont = [NSFont fontWithName:@"Helvetica" size:self.titleSize * CPTFloat(0.5)];
198
#endif
+ CPTNativeFont *labelFont = [CPTNativeFont fontWithName:@"Helvetica"
+ size:self.titleSize * CPTFloat(0.5)];
199
200
NSMutableAttributedString *title = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@"Pie Slice %lu", (unsigned long)index]];
201
[title addAttribute:NSForegroundColorAttributeName
0 commit comments