highcharts / highcharts-ios

iOS wrapper for Highcharts.
Other
127 stars 39 forks source link

Type 'HIChartView' has no member 'addFont' #346

Closed TillitForsikringAS closed 4 years ago

TillitForsikringAS commented 4 years ago

Hi, I'm trying to add a custom font to my Highchart graph, but it doesn't seem like HIChartView.addFont(fontPath) exist.

I've tested this code (following https://github.com/highcharts/highcharts-ios/blob/master/README.md#custom-fonts):

let fontPath = Bundle.main.path(forResource: "Windsong", ofType: "ttf")
HIChartView.addFont(fontPath)

I'm using the following pod: pod 'Highcharts', '~> 6.1.0'

ihnatmoisieiev commented 4 years ago

Hello @TillitForsikringAS, this feature is available from 7.0.2 version.

TillitForsikringAS commented 4 years ago

Thanks!