Hi Tom,

 

I also tried to use webfonts with magnolia and had similar problems: Our 
problem was, that we only got one font file uploaded into magnolia. They all 
have the same name with different endings (eot, woff, etc.) and magnolia strips 
the ending away and hence thinks this is really only one file and throws away 
the other three file versions. 

 

Since we have an apache in front of our tomcat we put the fonts somewhere the 
apache can find them and let the apache handle them directly (which is faster 
anyway). The font URLs are then something like 
“/webfonts/Comfortaa_Regular-webfont.eot”.

 

By the way: Is there a way to upload two files with the same name and different 
ending into the same folder in magnolia?

 

Regards,

 

Frank

 

Von: [email protected] [mailto:[email protected]] 
Im Auftrag von The Law Wizard
Gesendet: Montag, 27. Dezember 2010 20:52
An: [email protected]
Betreff: [magnolia-user] @font-face internal links

 

I am testing @font-face in Magnolia 4.3.6 (using the STK + Pop theme) without 
success.

 

I've placed four fonts in a new webfonts folder at Documents / templating-kit / 
themes / pop / img /

 

I've inserted standard @font-face CSS in styles.css as follows:

 

@font-face {

            font-family: 'ComfortaaRegular';

            src: url(../img/webfonts/Comfortaa_Regular-webfont.eot);

            src: local('☺'), 
url(../img/webfonts/Comfortaa_Regular-webfont.woff) format('woff'), 
url(../img/webfonts/Comfortaa_Regular-webfont.ttf) format('truetype'), 
url(../img/webfonts/Comfortaa_Regular-webfont.svg#webfontBAjBLipc) 
format('svg');

            font-weight: normal;

            font-style: normal;

}

 

Plus:   body {font-family: ComfortaaRegular, Verdana, Geneva, Tahoma, 
sans-serif; }

 

No luck. I've tried linking to fonts on a web server and these are rendered ok. 
So I presume I'm missing something with the internal linking in Magnolia 
(../img/webfonts/ etc).

 

Any suggestions? Help massively appreciated!

 

Thanks, Tom.

 

 

_____________________________________________________________________
Vorstand: Ralf Heller, Udo Möbes
Vorsitzende des Aufsichtsrates: Kirsten Heller
Sitz der Gesellschaft: Gruenwaelderstrasse 10-14, D-79098 Freiburg
Amtsgericht Freiburg HRB 6218

Versand am 29.12.2010 08:56 von rittinger frank
Validation-Code: 4171604413370



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to