Pointing to a custom font file not working | Community
Skip to main content
April 28, 2016
Solved

Pointing to a custom font file not working

  • April 28, 2016
  • 1 reply
  • 3096 views

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.
Best answer by

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

Case: 00576320

1 reply

Juan_de_Dios_Ng
New Participant
April 28, 2016

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

Accepted solution
April 29, 2016

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

Case: 00576320

KZ17_X
New Participant
November 9, 2020

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