Hello,
for some reason I want to import a font from Google Fonts as webfont to avoid using loadFont();
I insert the font link into index.html and in my style.css :
@font-face {font-family : "myFont" }
In sketch.js, I go with :
textFont('myFont'); text('hello', width/2, height/2);
It works.
I’d like to use the function refToMyFont.textToPixels(), but unlike the fact that we can store loadFont() in a variable, as my font’s imported as css, I don’t know how to reference to it in sketch.js.
I appreciate your helps, thanks !