# Custom font for forms

**URL:** <https://community.hubspot.com/t/custom-font-for-forms/84946>\
**Category:** Lead Capture Tools\
**Tags:** professional\
**Created:** [July 10, 2023, 5:30am UTC](https://community.hubspot.com/t/custom-font-for-forms/84946 "2023-07-10T05:30:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KGopalakrishn](https://avatars.discourse-cdn.com/v4/letter/k/7cd45c/32.png) [@KGopalakrishn](https://community.hubspot.com/u/KGopalakrishn)\
**Post date:** [July 10, 2023, 5:30am UTC](https://community.hubspot.com/t/custom-font-for-forms/84946/1 "2023-07-10T05:30:21Z")

</div>

is it possible to create a custom text font other than available google fonts in hubspot forms?

---

<div class="post-metadata">

**Author:** ![P\_Cortebeeck](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/p_cortebeeck/32/70727_2.png) [@P\_Cortebeeck](https://community.hubspot.com/u/P_Cortebeeck)\
**Post date:** [July 10, 2023, 9:05am UTC](https://community.hubspot.com/t/custom-font-for-forms/84946/2 "2023-07-10T09:05:50Z")

</div>

Hey @KGopalakrishn,  
You can set the form as raw HTML like so:

 ![P_Cortebeeck_0-1688979903387.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/5/d5bf86bc234ec1e507131695c1a06474ddd39214.png)

This allows you to either style it through HubCMS or by using custom css - which gives you the option to use any font that you like.

---

<div class="post-metadata">

**Author:** ![TomM2](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tomm2/32/70887_2.png) [@TomM2](https://community.hubspot.com/u/TomM2)\
**Post date:** [July 11, 2023, 10:03am UTC](https://community.hubspot.com/t/custom-font-for-forms/84946/3 "2023-07-11T10:03:14Z")

</div>

Just to follow up on [@P\_Cortebeeck](https://community.hubspot.com/t5/user/viewprofilepage/user-id/587212) when the “raw html” feature is disabled, HubSpot forms load within an iframe and are designed to be a bit of a “styling sandbox” so not external styling or scripts can affect them. It’s not currently possible to add more fonts to the HubSpot form editor, so when the form is not a raw html form no custom styling can be added outside of what’s available within the editor.

The only option would be to enable the raw HTML form and style the entire form yourself, alternatively if you have some experience with Javascript you could inject new CSS to the form via the [customised embed code](https://legacydocs.hubspot.com/docs/methods/forms/advanced_form_options#:~:text=to%20the%20form.-,css,own%20CSS%20styling.,-submitText), but I’ve seen this have mixed results.
