# Module Font Field Settings

**URL:** <https://community.hubspot.com/t/module-font-field-settings/69951>\
**Category:** CMS Development\
**Created:** [November 24, 2022, 5:26pm UTC](https://community.hubspot.com/t/module-font-field-settings/69951 "2022-11-24T17:26:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![belekate](https://avatars.discourse-cdn.com/v4/letter/b/ea5d25/32.png) [@belekate](https://community.hubspot.com/u/belekate)\
**Post date:** [November 24, 2022, 5:26pm UTC](https://community.hubspot.com/t/module-font-field-settings/69951/1 "2022-11-24T17:26:34Z")

</div>

Hi!  
I’m working on the custom module which will help my client to make a heading  
I have couple questions about fields with type “font”  
1. line-height  
Is there a possibility to have a line-height setting inside this “font” settings? somewhere there: [Screenshot by Lightshot](https://prnt.sc/CNpd5u7mj7Ur)  
So the content manager could setup unique line-height for every heading  
2. custom font-family  
My client uses a custom fonts like “Avenir” and “Avenir Next” with different font-weight  
So I would like to know how I could add this fonts to this list: [Screenshot by Lightshot](https://prnt.sc/ZmgxxARbKC9J)  
This is my font settings that I wrote: [Screenshot by Lightshot](https://prnt.sc/No63D08Ige2x)  
I enebled “load\_external\_fonts” option and I also checked this documentation: [Module and theme fields - HubSpot docs](https://developers.hubspot.com/docs/cms/building-blocks/module-theme-fields#font)  
It said that “HubSpot automatically loads the selected web font to the page if the font is selected and referenced by HubL in a stylesheet or in a module. Set this to false, if you are already loading the font to the page, that way the font won’t load twice.”  
The site already connected to the fonts above, but for test puroposes I connect this fints for module too ([Screenshot by Lightshot](https://prnt.sc/IYoSmUBq8E45))  
But I still can’t see this fonts in the list here: [Screenshot by Lightshot](https://prnt.sc/ZmgxxARbKC9J)  
Could you help me, please?  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![BarryGrennan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/barrygrennan/32/97794_2.png) [@BarryGrennan](https://community.hubspot.com/u/BarryGrennan)\
**Post date:** [November 24, 2022, 6:43pm UTC](https://community.hubspot.com/t/module-font-field-settings/69951/2 "2022-11-24T18:43:37Z")

</div>

1. I’d just use a numerical field then pass it to the module within a {% require\_css %} tag

2. I see you’re loading the font from a file within your theme. So it’s not a web font (i.e. not a Google font). If they’re not Google fonts you wont see them in the standard dropdown. This is a custom font and in this context is only available via stylesheet. [See here](https://knowledge.hubspot.com/website-pages/use-fonts-in-hubspot)

Now you could always create a boolean control toggle for font type “Standard and Web” or “Custom”. If “Standard and Web” is selected show the standard input. If “Custom” is selected you show a Choice field where you’ve entered your options. Then you’d set the scope\_css for the module such that it picked up the choices made.

* * *

 ![profile2022a.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/7/7273a34ccfe3489fceebc8a36eca751481b59531.jpeg)

**Barry Grennan**

[Freelance HubSpot CMS Developer](https://www.seoanseo.ca?utm_source=HubSpotCommunity)

[Website](https://www.seoanseo.ca?utm_source=HubSpotCommunity) | [Contact](https://www.seoanseo.ca/#contact?utm_source=HubSpotCommunity) | [LinkedIn](https://www.linkedin.com/in/barrygrennan)

* * *

 ![profile2022a.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/7/7273a34ccfe3489fceebc8a36eca751481b59531.jpeg)

**Barry Grennan**

[Freelance HubSpot CMS Developer](https://www.seoanseo.ca?utm_source=HubSpotCommunity)

[Website](https://www.seoanseo.ca?utm_source=HubSpotCommunity) | [Contact](https://www.seoanseo.ca/#contact?utm_source=HubSpotCommunity) | [LinkedIn](https://www.linkedin.com/in/barrygrennan)
