Replies: 1 comment
-
Hi! You're trying to call a function |
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.
-
So, my code is
function svg(){ const buffer = fetch('znaki.ttf').then(res => res.arrayBuffer()); const font = 'opentype.js'.parse(buffer);}
.I used 'opentype.js' instead of declaring it normally because I got an error that it's not at the top of the js file (It's in the literal top, not even in the root). I installed it normally with npm in the folder with the script.
I'm sorry if I made a really simple mistake as it's my first time doing frontend other than simple css for my desktop to look better.
Beta Was this translation helpful? Give feedback.
All reactions