-
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.
Replies: 2 comments
-
Just need to remove the |
Beta Was this translation helpful? Give feedback.
-
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.
Just need to remove the
require
:)