Pointing to a custom font file not working | Community
Skip to main content
Apr 28, 2016 11:46 AM UTC
Solved

Pointing to a custom font file not working

Hi all,

I have a landing page that needs a custom font. The font file is situated in the "Images and Files" section of Marketo here.

I reference this file with my on-page CSS:

@font-face {

     font-family: 'AvenirNextLTPro-Regular';

     src: url('k2nelanding.k2.com/rs/558-ODB-376/images/AvenirNextLTPro-Regular.woff') format('woff'),

     url('k2nelanding.k2.com/rs/558-ODB-376/images/AvenirNext-Regular.ttf') format('truetype');

}

body {

     font-family:AvenirNextLTPro-Regular;

}

This is not working. As you can see I reference .ttf file too but I don't see any change in font.

Can somebody shed some light on this matter please?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Accepted solution
Apr 29, 2016 8:33 AM UTC

"hosting font files in Marketo is not supported at the moment"

Case: 00576320

3 replies

Juan_de_Dios_Ng
Level 3
Apr 28, 2016 3:38 PM UTC

Hi Ervin

I cannot see anything wrong with the code.

As you know different browsers support a different set of font formats, you'll need to provide a set of alternatives for each browser (browser support .eot.woff *ttf) so you must provide alternative src for you fonts.

try looking in IE, Crome, Firefox and let me know

Translate
Accepted solution
Apr 29, 2016 8:33 AM UTC

"hosting font files in Marketo is not supported at the moment"

Case: 00576320

Translate
KZ17_X
Level 1
Nov 9, 2020 3:57 PM UTC

Is this still the case? Is hosting fonts in Marketo not available/not advised?

Translate