Grow your CSS skills. Land your dream job.

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’,
    font-files(
    ‘sp-medium.woff’, woff,
    ‘sp-medium.ttf’, ttf,
    ‘sp-medium.svg’, svg),
    ‘sp-medium.eot’
    );

    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: http://compass-style.org/reference/compass/css3/font_face/#mixin-font-face

    # 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.

*May or may not contain any actual "CSS" or "Tricks".