- From: Dave Crossland via GitHub <sysbot+gh@w3.org>
- Date: Fri, 10 May 2019 14:17:39 +0000
- To: public-css-archive@w3.org
davelab6 has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css4-fonts] Support 1 @font-face (1 file) providing both normal and italic font-styles ==
@nyshadhr9 pointed out today that this doesn't work as expected:
```html
<html>
</head>
<style>
@font-face {
font-family: 'Sample VF';
font-weight: 400;
font-style: normal;
src: url("VfItalSlnt-Regular.ttf") format('truetype');
}
@font-face {
font-family: 'Sample VF';
font-weight: 400;
font-style: italic;
src: url("VfItalSlnt-Regular.ttf") format('truetype');
}
p1 {
font-family: 'Sample VF', display;
font-style: normal;
}
p2 {
font-family: 'Sample VF', display;
font-style: italic;
}
</style>
</head>
<body>
<p1>hello world</p1><br>
<p2>hello world</p2>
</body>
</html>
```

[VfItalSlnt-Regular.zip](https://github.com/w3c/csswg-drafts/files/3166802/VfItalSlnt-Regular.zip)
Perhaps rather than duplicating the `@font-face`, this should be possible:
```css
@font-face {
font-family: 'Sample VF';
font-weight: 400;
font-style: normal italic;
src: url("VfItalSlnt-Regular.ttf") format('truetype');
}
```
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3908 using your GitHub account
Received on Friday, 10 May 2019 14:17:45 UTC