SOLVED

Pointing to a custom font file not working

Go to solution
Anonymous
Not applicable

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('http://k2nelanding.k2.com/rs/558-ODB-376/images/AvenirNextLTPro-Regular.woff') format('woff'),

     url('http://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?

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: Pointing to a custom font file not working

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

Case: 00576320

View solution in original post

3 REPLIES 3
Juan_de_Dios_Ng
Level 3

Re: Pointing to a custom font file not working

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

Anonymous
Not applicable

Re: Pointing to a custom font file not working

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

Case: 00576320

KZ
Level 1
Level 1

Re: Pointing to a custom font file not working

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