How to reduce font weight in Firefox on Mac with CSS?


Tags: css,osx,firefox,fonts

Problem :

Here's my problem: I'm using font-face for the menu of my website, but Firefox on Mac displays it too bold On a PC, everything works well, the font is perfectly sized and looks like it should

Unfortunatly, on Mac, i have to had a CSS hack for Safari (which works), but I didn't find anything similiar in Firefox.

I've tried the "text-shadow hack", i tried using the font-weight property (which pretty much doesn't do anything).

And now, some code!

@font-face {
    font-family: 'KnockoutHTF48FeatherweightRg';
    src: url('font/knockout-htf48-featherweight-webfont.eot');
    src: url('font/knockout-htf48-featherweight-webfont.eot?#iefix') format('embedded-opentype'),
         url('font/knockout-htf48-featherweight-webfont.woff') format('woff'),
         url('font/knockout-htf48-featherweight-webfont.ttf') format('truetype'),
         url('font/knockout-htf48-featherweight-webfont.svg#KnockoutHTF48FeatherweightRg')     format('svg');
    font-weight: normal;
    font-style: normal;

}

For Safari:

body{
    ...
    -webkit-font-smoothing: antialiased;
}

Left if FF on Mac and right is FF on PC (the good version) Screenshot

Thanks!



Solution :

FireFox posted a resolution to this today on their bug forum. It was just finalized today so won't be in use for a while, but we should all put

-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

in our body tag to reset this for all browsers. FINALLY!! man, that made my day! This should come out in the next FF release.

thread here https://bugzilla.mozilla.org/show_bug.cgi?id=857142


    CSS Howto..

    how to recreate tex's over- underbracket using css

    How to access CSS generated content with JavaScript

    How to select nth line of text (CSS/JS)

    How to specify the position of sub-menu div and prevent the menu div changed

    How to find absolute path to @font-face fonts with Firebug?

    Flexbox in Chrome--How to limit size of nested elements? [duplicate]

    How to override background of Bootstrap Material Design theme?

    CSS, borders: How do I prevent a border added to a table cell from displacing neighboring cells?
    I think you'll either need to size all non border cells wider and higher by the width of the line around it. or you given them all borders and set...
    Read more

    How to create a pop-up div on mouse over and stay when click

    How might I get an element's border color value using jQuery?

    Icon with overhead label - how to get both to respond to hover, with CSS?

    How to add style to words (HTML/CSS)

    How to align text and image in a CSS box?

    jQuery hide/show issue with offset

    How to know where a CSS error occurred in dynamic content or how to stop the script upon CSS error

    How to inline the contents of an entire stylesheet with Wordpress?

    how to set base_url() inside css file using codeigniter, to access background_image_url inside css file?

    How to achive this design CSS

    Updating CSS via plain JavaScript… how do I update if the property uses vendor prefixes?

    Ascii character codes shown as text in browser [duplicate]

    Using CSS, how to create a two-column grid with equal-width columns that are “only as narrow as required”?

    How to Center Logo in Responsive Header [closed]

    “Best fit” font size - how do I measure a sentence width?

    How do I get my header to align with my navigation bar at the center of my page?

    How to set session variable in jquery/css?

    How can I set the correct position of the text in CSS?

    How to remove the arrows in a scroll bar through CSS

    How to align this bootstrap radio button?

    How to achieve CSS transitions with delay timers but without any easing function?

    php css how to change name color based on membership?