mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
gfx: Implement font-stretch
per CSS3-FONTS § 3.3 in the Core Text
font backend.
This commit is contained in:
parent
aba5c16091
commit
abddfa742f
8 changed files with 101 additions and 44 deletions
24
tests/html/font_stretch.html
Normal file
24
tests/html/font_stretch.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
body {
|
||||
font-size: 36pt;
|
||||
font-family: "Helvetica Neue";
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
}
|
||||
#a {
|
||||
font-stretch: normal;
|
||||
}
|
||||
#b {
|
||||
font-stretch: condensed;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id=a>Felis silvestris catus</div>
|
||||
<div id=b>Felis silvestris catus</div>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue