Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Cannot access https fonts from http

  • This topic is empty.
Viewing 10 posts - 16 through 25 (of 25 total)
  • Author
    Posts
  • #138402
    tannercampbell
    Participant

    How about a screen share?

    #138400
    chrisburton
    Participant

    Your typography is fucked. Some of the links show Verdana (look at the capital `i` in “Investment Philosophy”). That’s Verdana.

    Now, look at the `Q` in “FAQs”. That doesn’t resemble Verdana or CartoGothic but rather Arial.

    Therefore, I can tell that both sections are not rendering appropriately.

    >Sure. How?

    You can message me here on the forums by clicking my name or email me chris[at]christopherburton.net

    Screen share?

    #138404
    Alen
    Participant

    On Linux, Chrome (Version 27.0.1453.110)

    Direct link: http://www.alenabdula.com/public/screen1.png

    #138405
    tannercampbell
    Participant

    Yeah, we didn’t do the CSS some vendor did. This is why we usually do our own, things like that happen.

    #138406
    tannercampbell
    Participant

    Emailing you now.

    #138407
    chrisburton
    Participant

    Great.


    @alenabdula
    I get the same thing.

    #138410
    chrisburton
    Participant

    We found that the server is running IIS and adding mime types to htaccess still does not take effect.

    Oddly enough, Firefox is the main issue and apparently so is IE but Chrome renders.

    I’m assuming it’s a cross-site blocking issue.

    #138456
    tannercampbell
    Participant

    The answer to this problem was this bit of code in the htaccess file:


    Header set Access-Control-Allow-Origin “*”

    AddType application/vnd.ms-fontobject .eot
    AddType font/ttf .ttf
    AddType font/otf .otf
    AddType application/font-woff .woff

    Apparently Firefox (and I’m guessing IE) doesn’t allow cross-domain fonts, and since the page experiencing the issue was http while the rest of the site was https – that must count as cross-domain. Here’s a site that does a better job of explaining it:

    http://www.red-team-design.com/firefox-doesnt-allow-cross-domain-fonts-by-default

    #138457
    tannercampbell
    Participant

    big thanks to @ChrisBurton – he’s a font super-hero and a talented web developer.

    #138504
    chrisburton
    Participant

    I actually suck at web development. IIS is known to have issues with serving fonts and having to set mime types to load them. But I’m glad we solved it.

Viewing 10 posts - 16 through 25 (of 25 total)
  • The forum ‘CSS’ is closed to new topics and replies.