Get help. Give help. A Web Design and Development Community.

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.

We have a pretty good* newsletter.