Anyway to grab the font family css?

I’m creating a type of stylizer. People can make things look how they want. It’s coming along well.

I export their designs using a ton of manual translation from JSON to HTML+CSS+JS.

Is there an easy way to grab the google hosted font family scripts within the editor’s head beyond js? I can use document.head and do some searches but I’m wondering if the fonts used are stored in the weweb config files I can somehow access? Thanks! :slight_smile:

Hey, you shouldn’t use document.head while in the editor, as the app is running in an iframe. Use wwLib.getFrontDocument() instead :wink:

Not sure you can get the font otherwise though.