highcharts / highcharts-ios

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

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

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

Duplicate of https://github.com/highcharts/highcharts-ios/issues/346