/    Sign up×
Community /Pin to ProfileBookmark

Validating @fontface

I am trying desperately for a way to validate a custom font that I have in my webpage to no avail.

[CODE]

@font-face {
font-family: myfont;
src: url(“fonts/myfont.eot”);
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: myfont;
src: url(“fonts/myfont.ttf”);
font-weight: normal;
font-style: normal;
}

[/CODE]

When validating my CSS this gives me errors such as:-

Value Error : font-family Property font-family doesn’t exist in CSS level 2.1 but exists in : myfont myfont

Property src doesn’t exist : url(“fonts/segoepr.eot”) url(“fonts/segoepr.eot”)

etc

Is there any possible workaround for this as I really need to get this to validate?

Also another thing this font I have applied it looks fine however during page refresh/reload the font quickly changes to arial or some other font then suddenly changes to myfont as it should but it’s as if it takes a couple of seconds to load for some reason. This only happens in IE. Is therer any fix for this also?

Thanks in advance for any help.

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@cootheadFeb 24.2011 — [indent]This problem has been answered here...
[list]
  • [*]http://www.webdeveloper.com/forum/showthread.php?t=242766
  • [/list]

    ...so this thread or the one that I have linked to constitutes a double post. ?

    [i]coothead[/i][/indent]
    ×

    Success!

    Help @jimmyoneshot spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.19,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...