Skip to main content
KZ43_X
Level 1
Nov 9, 2020 3:38 PM UTC
Solved

Reference custom fonts in design studio

Is it possible to upload custom font files to design studio and references them in html templates? Or do the font stylesheets need to be hosted somewhere else?

 

This (uploaded fonts to sandbox and production design studio, referencing both):
@font-face {font-family: "Averta-Semibold";
src: url(http://pages2.mindbodyonline.com/rs/327-TQG-964/images/Averta-SemiBold.eot) format("embedded-opentype"),
url(https://pages.mindbodyonline.com/rs/346-JOI-498/images/Averta-SemiBold.eot) format("embedded-opentype");} 

 

Or this (found location of fonts in website css and using that as a reference)
@font-face{font-family:"Averta-Semibold";font-style:normal;font-weight:600;src:url(mindbodyonline.com/themes/mindbody/dist/patterns/fonts/3A498A_C_0.eot);src:url(https://mindbodyonline.com/themes/mindbody/dist/patterns/fonts/3A498A_C_0.eot#iefix) format("embedded-opentype"),url(mindbodyonline.com/themes/mindbody/dist/patterns/fonts/3A498A_C_0.woff2) format("woff2"),url(mindbodyonline.com/themes/mindbody/dist/patterns/fonts/3A498A_C_0.woff) format("woff"),url(mindbodyonline.com/themes/mindbody/dist/patterns/fonts/3A498A_C_0.ttf) format("truetype");text-rendering:optimizeLegibility;unicode-range:U+000-5FF}

SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Nov 9, 2020 10:26 PM UTC

Unfortunately, whether it's possible is an instance-by-instance thing.

 

Your instance uses MIME type text/plain for .eot, so I wouldn't trust it. Other instances serve .eot as octet-stream, which is fine. (Marketo doesn't configure all LP/DS webservers exactly the same.)

1 reply

SanfordWhiteman
User Group Leader
SanfordWhitemanUser Group LeaderAccepted solution
User Group Leader
Nov 9, 2020 10:26 PM UTC

Unfortunately, whether it's possible is an instance-by-instance thing.

 

Your instance uses MIME type text/plain for .eot, so I wouldn't trust it. Other instances serve .eot as octet-stream, which is fine. (Marketo doesn't configure all LP/DS webservers exactly the same.)

Translate