-
Currently Im using the cdn source but I want to change it to using local source. How can I do it? As I facing the error. " |
Beta Was this translation helpful? Give feedback.
Answered by
kaisiant
Jan 11, 2023
Replies: 2 comments
-
Just need to remove the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kaisiant
-
Was it different in previous versions? Also here is an example if you are using import path from 'path'
Font.register({
family: "NotoSansJP-Regular",
format: "truetype",
src: path.join(__dirname, './NotoSansJP-Regular.ttf'),
}); |
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
Just need to remove the
require
:)