Replies: 1 comment
-
yes you can build you own react context provider for that.
We use a similar solution for some projects.
…On Fri, May 10, 2024 at 9:41 AM Matin Zadeh Dolatabad < ***@***.***> wrote:
Is it possible to load fonts via a exposed function somewhere early in the
app and then export it for Skia to use? I had to do some weird stuff but
the types are broken and I don't know if it works :)
const tfFactory = Skia.Typeface.MakeFreeTypeFaceFromData.bind(Skia.Typeface);loadData(require('../assets/fonts/ReadexPro-Regular.ttf'), tfFactory);
—
Reply to this email directly, view it on GitHub
<#2421>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKXVQVA3TRRUFAW6N4EPLZBR23XAVCNFSM6AAAAABHQE4HC6VHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWGYZTSMRQGY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Is it possible to load fonts via a exposed function somewhere early in the app and then export it for Skia to use? I had to do some weird stuff but the types are broken and I don't know if it works :)
Beta Was this translation helpful? Give feedback.
All reactions