• So in my local environment (MAMP), I was able to work with @fontface and actually see the wonderful and exciting fonts I have chosen for my site.

    Problem is that when I took it to the live version (http://tiny-picture.com), the site tries to load it with the fonts to no avail. They default. I have tried several versions of links and nothing seems to work. Please tell me if you see something odd:

    The CSS (which is at the very top of my style.css):

    @font-face {
        font-family:'forumregular';
        src: url('/fonts/forum-regular-webfont.eot');
        src: url('/fonts/forum-regular-webfont.eot?#iefix') format('embedded-opentype'),
             url('/fonts/forum-regular-webfont.woff') format('woff'),
             url('/fonts/forum-regular-webfont.ttf') format('truetype'),
             url('/fonts/forum-regular-webfont.svg#forumregular') format('svg');
        font-weight: normal;
        font-style: normal;
    }
    
    @font-face {
        font-family:'BevanRegular';
        src: url('/fonts/Bevan-webfont.eot');
        src: url('/fonts/Bevan-webfont.eot?#iefix') format('embedded-opentype'),
             url('/fonts/Bevan-webfont.woff') format('woff'),
             url('/fonts/Bevan-webfont.ttf') format('truetype'),
             url('/fonts/Bevan-webfont.svg#BevanRegular') format('svg');
        font-weight: normal;
        font-style: normal;
    }

    I refer to it later in the css like this:

    #contactinfo{
    	font-family:'BevanRegular';
    	font-size: 11px;
    	padding-left: 45px;
    	padding-top: 10px;

    I looked at my permissions, as someone else here mentioned, but mine seem fine.

    Any thoughts?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Use a more specific URL when referring fonts;
    E.g

    src: url('/wp-content/themes/yourTheme/fonts/Bevan....');

    But make sure the directory URL is correct.

    Thread Starter kingsmithstudio

    (@kingsmithstudio)

    Nope. I even put the whole url in…cleared the cache and it is still not working.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you link the page relevant to this problem?

    Thread Starter kingsmithstudio

    (@kingsmithstudio)

    http://tiny-picture.com It is the whole site. It seems to take a long time to load, but the fonts are not correct.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    So where on which page is the HTML element, #contactinfo that you’re applying this font to?

    Thread Starter kingsmithstudio

    (@kingsmithstudio)

    None of the fonts are working – that one is just an example.

    On the right, “Tiny Picture Company” and on the left “Where we are, how to reach us, and let’s be social” (that’s the #contactinfo) are all supposed to be Bevan.

    All the rest are supposed to be Forum.

    Hope this makes sense.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    What permissions does the fonts folder have?

    Thread Starter kingsmithstudio

    (@kingsmithstudio)

    The folder is rwx—r–(709). The images are rwx—xr–(755).

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘An @fontface problem’ is closed to new replies.