Skip to content

font-weight #20

Closed
Closed
@zippaaa

Description

@zippaaa

Please remove the replacement

'font-weight': function (value) {
   if (value == 'normal')      
       return '400';             
    else if (value == 'bold')   
      return '700';             
    else                        
      return value;
});

It is not right.

I can use a font with a different weight:

@font-face {
        font-family: 'Abc';
        src: local('Abc'),
                url('http://.../Abc.woff') format('woff');  <---- light 300
        font-weight: normal; <---- as normal
}

div {
    font-family: Abc;
    font-weight: normal; <---- now normal is font's weight
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions