Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help with '@font-face' needed.

1 view
Skip to first unread message

Josiah Jenkins

unread,
Dec 14, 2009, 2:39:49 PM12/14/09
to
I have a (test) page which displays correctly in IE, FF and Opera.
The HTML validates but the corresponding 'fonts.css' file
shows 20 errors. (Actually the same four repeated 5 times)

1) Value Error : font-family Property font-family doesn't exist in
CSS level 2.1 but exists in : "BallantinesSerial"
2) Property src doesn't exist : url
3) Parse Error (fonts/BallantinesSerial.eot);
4) Parse Error [: url (fonts/BallantinesSerial.ttf); } .ballantine]

http://www.ian-stewart.eu/a_font_test.php

Any help appreciated.


--
http://www.ian-stewart.eu

Johannes Koch

unread,
Dec 14, 2009, 3:29:28 PM12/14/09
to
Josiah Jenkins schrieb:

> I have a (test) page which displays correctly in IE, FF and Opera.
> The HTML validates but the corresponding 'fonts.css' file
> shows 20 errors. (Actually the same four repeated 5 times)
>
> 1) Value Error : font-family Property font-family doesn't exist in
> CSS level 2.1 but exists in : "BallantinesSerial"

Note: CSS level 2.1

> 2) Property src doesn't exist : url
> 3) Parse Error (fonts/BallantinesSerial.eot);
> 4) Parse Error [: url (fonts/BallantinesSerial.ttf); } .ballantine]
>
> http://www.ian-stewart.eu/a_font_test.php
>
> Any help appreciated.

Now see <http://www.w3.org/TR/CSS21/changes.html#q104>:

Font descriptors, the '@font-face' declaration, and all associated parts
of the font matching algorithm have been removed in CSS 2.1.

--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)

Josiah Jenkins

unread,
Dec 14, 2009, 5:36:39 PM12/14/09
to
On Mon, 14 Dec 2009 21:29:28 +0100, Johannes Koch
<ko...@w3development.de> wrote:

>Josiah Jenkins schrieb:
>> I have a (test) page which displays correctly in IE, FF and Opera.
>> The HTML validates but the corresponding 'fonts.css' file
>> shows 20 errors. (Actually the same four repeated 5 times)
>>
>> 1) Value Error : font-family Property font-family doesn't exist in
>> CSS level 2.1 but exists in : "BallantinesSerial"
>
>Note: CSS level 2.1

When I change the profile to Level 3, I have 15 errors.
ie the 3 below x 5.


>
>> 2) Property src doesn't exist : url
>> 3) Parse Error (fonts/BallantinesSerial.eot);
>> 4) Parse Error [: url (fonts/BallantinesSerial.ttf); } .ballantine]
>>
>> http://www.ian-stewart.eu/a_font_test.php
>>
>> Any help appreciated.
>
>Now see <http://www.w3.org/TR/CSS21/changes.html#q104>:
>
>Font descriptors, the '@font-face' declaration, and all associated parts
>of the font matching algorithm have been removed in CSS 2.1.

Thanks. At least that saves me some further head scratching.


--
http://www.ian-stewart.eu

Harlan Messinger

unread,
Dec 15, 2009, 7:55:42 AM12/15/09
to

Take out the space after each "url".

Josiah Jenkins

unread,
Dec 15, 2009, 10:28:27 AM12/15/09
to
On Tue, 15 Dec 2009 07:55:42 -0500, Harlan Messinger
<hmessinger...@comcast.net> wrote:
>Josiah Jenkins wrote:
>> On Mon, 14 Dec 2009 21:29:28 +0100, Johannes Koch
>> <ko...@w3development.de> wrote:
>>
>>
>> When I change the profile to Level 3, I have 15 errors.
>> ie the 3 below x 5.
>>>> 2) Property src doesn't exist : url
>>>> 3) Parse Error (fonts/BallantinesSerial.eot);
>>>> 4) Parse Error [: url (fonts/BallantinesSerial.ttf); } .ballantine]
>
>Take out the space after each "url".

Thank you. It now validates as CSS level 3

I don't know whether I'll ever actually use the function,
I was just curious to see if I could understand it . . .
--
http://www.ian-stewart.eu

0 new messages