View Single Post
Old 05-15-2013, 10:26 AM   #8
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,821
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Moonraker View Post
Why does my WC3 validation for stylesheet give me the following errors?:

5 Property src doesn't exist : url('../Fonts/alkaios-regular.ttf')
13 .alkaios Property src doesn't exist : url('../Fonts/alkaios-regular.ttf')

but the font displays correctly in Desktop Adobe Digital Editions.

I want to use this font for some Romanian characters.

The code in my css sheet is:

@font-face {
font-family: "alkaios";
font-weight: normal;
font-style: normal;
src: url('../Fonts/alkaios-regular.ttf');
}

.alkaios {
font-family: "alkaios";
font-weight: normal;
font-style: normal;
src: url('../Fonts/alkaios-regular.ttf');
}

The @fontface declaration is the first in the CSS stylesheet.

I have been hours trying to figure this out.
I think the error message is due to a bad definition of the class .alkaios. Try with this definition:

.alkaios {
font-family: "alkaios";
font-weight: normal;
font-style: normal;
}

You don't have to include (in that class) "src: url('../Fonts/alkaios-regular.ttf');". That is because "src" is not a valid property for a class (is a valid property for a @font definition).
RbnJrg is offline   Reply With Quote