Forums

Font directory (5 posts)

  1. Udo Schmitz
    Member
    Posted 12 months ago #

    Can I put the fonts I call via "@font-face" anywhere I want, or is there a best practice with WordPress?

  2. kmessinger
    Member
    Posted 12 months ago #

    There is a plugin here, http://blogs.sitepoint.com/the-fontface-jquery-plugin/ that might be what you need.

  3. Udo Schmitz
    Member
    Posted 12 months ago #

    Thanks, but I don't have any problem with "@font-face". I just wanted to know, if there's a preferred directory.

  4. kmessinger
    Member
    Posted 12 months ago #

    I would put them in a directory called fonts as an example from w3c.
    Seems like closer to the root is better.

    @font-face {
      font-family: Gentium;
      src: url(http://example.com/fonts/Gentium.ttf);
    }
  5. Udo Schmitz
    Member
    Posted 12 months ago #

    OK, that's what I did.

    Seems like closer to the root is better.

    Interesting, I didn't know that.

    Thanks :)

Reply

You must log in to post.

About this Topic