The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

Help adding font weight to compass mixin.

  • # July 16, 2013 at 12:33 am

    So using the standard compass @font-face mixin.

    @include font-face(
    ‘sp-medium.woff’, woff,
    ‘sp-medium.ttf’, ttf,
    ‘sp-medium.svg’, svg),

    I would like to add

    font-weight: normal;
    font-style: normal;
    -webkit-font-smoothing: antialiased;

    But am getting errors when I just stick it places. Not sure how to do this. Thanks

    # July 16, 2013 at 2:32 am

    The documentation actually says that it accepts font-weight and font-style directly in the mixin:

    # July 16, 2013 at 1:20 pm

    Dont know how missed that, thanks.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed