Usage of custom font-family in ImageSVG #1876
Unanswered
Jakub-Plan-d-k
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I created an issue for #1894 since there is an API where we can set the font mgr for the SVG module |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am facing a problem following the documentation on fonts, which can be found here
The root of the problem is a bit deeper - I am trying to implement my icon set font for Apache eCharts, where Skia is the rendering engine of choice.
As of now I have tracked the issue to the following problem: when I try to use custom font-family within ImageSVG (where the svg contains
<text font-family="myCustomFontFamily"></text>
) refuses to work for me, no matter what. Documentation says everything available in the app should be available there.The icon set works perfectly everywhere else, the font is linked via react-native-asset.
The project is pure react native, no expo.
I have tried a few versions of your library, including the 0.1.210, built today.
I have tried and played with the following:
<text>
element - works perfectly ✅<Text>
element where custom font is passed as a prop thorugh the fontMgr, like here - works perfectly ✅I am a bit lost. Is there a way to pass the font prop to ImageSVG? Or am I missing something?
Regards,
Jakub
Beta Was this translation helpful? Give feedback.
All reactions