Forums

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

Home Forums CSS @Font Looks Bad In WebKit Browsers

  • This topic is empty.
Viewing 15 posts - 1 through 15 (of 31 total)
  • Author
    Posts
  • #35387
    LaurelBrittany
    Participant

    http://www.lwebdesigns.net/templates/luannarodham/index.php

    I loaded an aller font onto this website for the header tags. I have a ttf, eot, woof, and otf loaded. It was originally a ttf and I used a converter to convert the others. Any idea why it would look good on firefox and ie but not on webkit browsers? I did try putting this in the body -webkit-font-smoothing: subpixel-antialiased !important; and it did nothing.

    Should I use a different font? What would be a good one to use for my headers?

    #91532
    standuncan
    Member

    I have noticed recently a lot of the non-standard fonts I have been using look terrible in Chrome, not necessarily all Webkit browsers though. Even when using Google fonts, go figure. I believe it is just the way these browsers render the font and there isn’t much you can do about it.

    #91562
    LaurelBrittany
    Participant

    Yeah, I have noticed that too! It looks fine for h3 and h4. I will try to find a different font for h1, h2, and h5. I wonder if there is a way to make a different font load for Safari and Chrome.

    #91594
    matthewb
    Member

    you can use css hack specific for webkit browsers(chrome and safari) to load different fonts in your webpage.

    #91606
    LaurelBrittany
    Participant

    Matt,

    How do I do that :D? Do you know of any good tutorials?

    #91607
    LaurelBrittany
    Participant

    Nevermind, this worked like a charm

    @media screen and (-webkit-min-device-pixel-ratio:0) {
    h1 { font-family: Arial, Verdana, San-Serif; }
    }

    #91621
    chrisburton
    Participant

    Heh. Seems like bad practice to be doing this. We should be using fonts that are optimized for the web.

    #91635
    chrisburton
    Participant

    Perhaps the fonts you’re using are just saying they are optimized but really not? Where are you all getting your fonts from? I haven’t had issues but that’s not to say I’m right.

    #91638
    chrisburton
    Participant

    Hmm. Typekit should be pretty solid. I started testing Brandon Grotesque on my site 3 months ago (still in design stage) until typekit added it to its library and have seen 0 issues cross-browser.

    #91645
    brentwpowell
    Member

    I’ve run across a lot of bad looking fonts in Chrome on Windows, but the same fonts looked great in the Mac version of Chrome. With a little further research it turns out that Chrome in windows, for whatever reason, uses a software approach for anti-aliasing fonts, while Firefox and IE9 use hardware accelerated DirectWrite to accomplish the same task. This is only an issue on Windows, as it has to do with DirectX. Sorry, no solution, but maybe with some more awareness, Google can add some hardware anti-aliasing to Chrome.

    #91648
    chrisburton
    Participant

    I thought the code below was a fix for that?

    -webkit-font-smoothing: antialiased;

    Also, I noticed that the nav links on http://teamtreehouse.com looks awful on Windows (perhaps Chrome alone, haven’t tested other browsers).

    #91650
    LaurelBrittany
    Participant

    I thought so too. I tried that and it didn’t fix my problem :/.

    #91651
    brentwpowell
    Member

    You had my hopes up!
    Just tried it and it didn’t work for me. I tried the code on some Google Web Fonts that I’ve known to have some issues in the Windows version of Chrome and Safari. The way I understand it, it is more dependent upon the anti-aliasing process. Chrome for Windows does anti-alias but just not as good as what DirectX can do. I looked into the above code, and it seems to only affect WebKit browsers on the Mac. Anyone else have any experience with this? I would love to be proved wrong!
    You can impose a hack and add

    text-shadow: 0 0 1px rgba(###,###,###,.5)

    but that doesn’t really address the issue.

    #91652
    chrisburton
    Participant

    Oh, right. I forgot that solved the Mac issue. But yeah, I don’t use Google web fonts so I can’t answer there. However, I haven’t seen issues with it on Typekit (at least with the fonts I use).

    #91660
    davidlab.be
    Participant

    Try using the fontsquirrel.com @FONT-FACE GENERATOR with your fonts and click the expert settings. I can’t remember off the top of my head at this time without going to fontsquirrel, but I believe there used to be a setting to help font rendering. Anyway for what ever reason it generates fonts better then most. I had the same issue with chrome fonts and a lot better luck generating my own. Good luck.

Viewing 15 posts - 1 through 15 (of 31 total)
  • The forum ‘CSS’ is closed to new topics and replies.