-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use custom imported font for legend and axis title (iOS) #49
Comments
Hi @amankarora,
|
Thank you for the reply, yes I have however instead of becoming my font, it changes it to another style. Im not sure if that's because it is not being recognised by Highcharts correctly because the font works correctly throughout the rest of the app. Does Highcharts require the font to be in a particular format? If you see the image below, I want the y axis font to be the same as the font of the numbers at the top. However it is changing to a completely different style. Inside the
Do I need to import it in a particular way? |
You should add fonts in a proper way, which is described in our iOS wrapper docs. https://github.com/highcharts/highcharts-ios (the custom font chapter) |
Thanks for that but I am using React Native and Expo for my project. Is there any other way you could suggest? |
Yes I aware of that, but react native also "translate your application" to native iOS. So you need to add the font to iOS application's system. Please try to add the font like in mentioned link (not using iOS wrapper). |
@amankarora do you use EXPO CLI app or native React Native CLI? |
I'm experiencing a similar issue on a project. This one is an ejected app with native code. We have imported a font, into the app and they work everywhere else but in high charts rn. @sebastianbochan If possible, would you explain in more detail how to add fonts that will be visible to HCRN? Assuming only basic native knoweldge, like linking and hooking up native RN modules in AppDelegate/MainActivity? Thanks :) |
Hi @confusingbits, |
Closed due to inactivity. |
Will this work in an Expo Managed Workflow (using expo-cli)? |
The issue was related to previous version of wrapper (<3.0). Please let me know if you have still a problem with it (in the newest release). |
I am on |
I will try to debug it as soon as possible. |
I have been trying to integrate my own custom font that is used throughout my app in the Highcharts but it does not recognise it. I have been unable to locate an example of where someone has used a custom font in their application without it being hosted externally. The .TTF file of the font is in my project folder and loaded asynchronously in my App.js. It would be much appreciated if someone could provide some guidance or if this feature could be added to the project.
The text was updated successfully, but these errors were encountered: