# Anyway to grab the font family css?

**URL:** <https://community.weweb.io/t/anyway-to-grab-the-font-family-css/5027>\
**Category:** How do I?\
**Created:** [October 23, 2023, 11:48pm UTC](https://community.weweb.io/t/anyway-to-grab-the-font-family-css/5027 "2023-10-23T23:48:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cam](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@Cam](https://community.weweb.io/u/Cam)\
**Post date:** [October 23, 2023, 11:48pm UTC](https://community.weweb.io/t/anyway-to-grab-the-font-family-css/5027/1 "2023-10-23T23:48:58Z")

</div>

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! 🙂

---

<div class="post-metadata">

**Author:** ![Quentin](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/quentin/32/6_2.png) [@Quentin](https://community.weweb.io/u/Quentin)\
**Post date:** [October 24, 2023, 9:20am UTC](https://community.weweb.io/t/anyway-to-grab-the-font-family-css/5027/2 "2023-10-24T09:20:56Z")

</div>

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

Not sure you can get the font otherwise though.
