Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Help adding font weight to compass mixin.

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #46407
    revolutiong
    Participant

    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

    #143059
    TheDoc
    Member

    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

    #143157
    revolutiong
    Participant

    Dont know how missed that, thanks.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.