Skip to content

Black text looks bolder on white background #6

@JayOram

Description

@JayOram

From Ben Tweedy in EmailGeeks slack:

Just spent an hour pulling my hair out and trying to work out why a custom font looks bolder than it should do…. Turns out it’s because of the anti-aliasing algorithm being used in some browsers. If anyone encounters the same, add this to your head (I always used to include it but removed it a while ago….back in it goes!)

body {
-webkit-font-smoothing: antialiased;
-moz-font-smoothing: antialiased;
-o-font-smoothing: antialiased;
}

https://stackoverflow.com/questions/14477265/css-white-text-on-black-background-looks-bolder

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions