Frank,

Thanks so much. I seem to have cracked it. This is what I've done:

1. @font-face kits stored at apache-tomcat-5.5.27\webapps\webfonts\ (not
uploaded through Magnolia, just copy/paste)

2. In styles.css

@font-face {
font-family: 'ComfortaaRegular';
src: url('/webfonts/Comfortaa_Regular-webfont.eot');
src: local('☺'), url('/webfonts/Comfortaa_Regular-webfont.woff')
format('woff'), url('/webfonts/Comfortaa_Regular-webfont.ttf')
format('truetype'),
url('/webfonts/Comfortaa_Regular-webfont.svg#webfontBAjBLipc')
format('svg');
font-weight: normal;
font-style: normal;
}

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

Is this as good as any technique, as far as you're aware? It's working fine,
so unless there's a faster way it will do me nicely.

As for uploading 2+ files with same name and different ending to same
folder, I didn't have a problem. This is the way I did it:

   1. Selected the new folder mentioned in my first e-mail clicked New
   Document / choose file etc.
   2. Four files with same name / different file types uploaded ok....
   Magnolia added a 0 to the end of the second file name, a 1 to the third, 2
   to the fourth, resulting in 4 different file names. Presumably this is
   Magnolia's work-around for the issue. I'm running v 4.3.6 - maybe not a
   feature in earlier versions.

I only realised that Magnolia added the numbers after my previous e-mail, so
my previous CSS wouldn't have worked anyway. I adjusted the CSS accordingly
but still no luck; at least I've found another solution with your help.

Thanks again,
Tom


On 29 December 2010 07:56, frank rittinger <
[email protected]> wrote:

> 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]>
> ----------------------------------------------------------------
>


----------------------------------------------------------------
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