FontLoader not loading woff2 format
-
Hi, I'm trying to build a qtquick application, and trying to load a font from google fonts (https://fonts.googleapis.com/css2?family=Big+Shoulders+Stencil:opsz,wght@10..72,100..900&display=swap).
The way I do it is take one of the sources in the above link, and paste it in the source of FontLoader:
FontLoader {id: myfont; source: "https://fonts.gstatic.com/s/bigshouldersstencil/v2/TwMQ-JIEQ1Je5sI6Bx1TKHD83rT3u3NSCfbvxY5Cf8Y.woff2"}
But I get this error: QML FontLoader: Cannot load font: "https://fonts.gstatic.com/s/bigshouldersstencil/v2/TwMQ-JIEQ1Je5sI6Bx1TKHD83rT3u3NSCfbvxY5Cf8Y.woff2"
Many thanks.
-
Hi,
Do you have OpenSSL properly setup on your machine ?
-
Hi, many thanks for your response,
Most probably not, I haven't done any particular setup for that.
But I'm guessing if I want to use the app in different devices I would have to setup openssl separately?
Would it be better to download the font and set it as a project resource somehow?
Many thanks for your help.