mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
Base: Add a test page for CSS font-face
This commit is contained in:
parent
539adf5b9c
commit
5ebcb15c92
Notes:
sideshowbarker
2024-07-17 14:12:33 +09:00
Author: https://github.com/skyrising Commit: https://github.com/SerenityOS/serenity/commit/5ebcb15c92 Pull-request: https://github.com/SerenityOS/serenity/pull/13595
7 changed files with 70 additions and 0 deletions
70
Base/res/html/misc/font-face.html
Normal file
70
Base/res/html/misc/font-face.html
Normal file
|
@ -0,0 +1,70 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS @font-face Test</title>
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: TestWOFF-TTF;
|
||||
src: url("./test-truetype.woff") format("woff");
|
||||
}
|
||||
.woff-ttf {
|
||||
font-family: TestWOFF-TTF;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: TestWOFF-CFF;
|
||||
src: url("./test-cff.woff") format("woff");
|
||||
}
|
||||
.woff-cff {
|
||||
font-family: TestWOFF-CFF;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: TestWOFF2-TTF;
|
||||
src: url("./test-truetype.woff2") format("woff2");
|
||||
}
|
||||
.woff2-ttf {
|
||||
font-family: TestWOFF2-TTF;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: TestWOFF2-CFF;
|
||||
src: url("./test-cff.woff2") format("woff2");
|
||||
}
|
||||
.woff2-cff {
|
||||
font-family: TestWOFF2-CFF;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: TestTTF;
|
||||
src: url("./test.ttf") format("truetype");
|
||||
}
|
||||
.ttf {
|
||||
font-family: TestTTF;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: TestOTF;
|
||||
src: url("./test.otf") format("opentype");
|
||||
}
|
||||
.otf {
|
||||
font-family: TestOTF;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>These should render checkmarks, not X's</p>
|
||||
<p>WOFF with TTF: <span class="woff-ttf">X</span></p>
|
||||
<p>WOFF with CFF: <span class="woff-cff">X</span></p>
|
||||
<p>WOFF2 with TTF: <span class="woff2-ttf">X</span></p>
|
||||
<p>WOFF2 with CFF: <span class="woff2-cff">X</span></p>
|
||||
<p>TTF: <span class="ttf">X</span></p>
|
||||
<p>OTF: <span class="otf">X</span></p>
|
||||
</body>
|
||||
</html>
|
BIN
Base/res/html/misc/test-cff.woff
Normal file
BIN
Base/res/html/misc/test-cff.woff
Normal file
Binary file not shown.
BIN
Base/res/html/misc/test-cff.woff2
Normal file
BIN
Base/res/html/misc/test-cff.woff2
Normal file
Binary file not shown.
BIN
Base/res/html/misc/test-truetype.woff
Normal file
BIN
Base/res/html/misc/test-truetype.woff
Normal file
Binary file not shown.
BIN
Base/res/html/misc/test-truetype.woff2
Normal file
BIN
Base/res/html/misc/test-truetype.woff2
Normal file
Binary file not shown.
BIN
Base/res/html/misc/test.otf
Normal file
BIN
Base/res/html/misc/test.otf
Normal file
Binary file not shown.
BIN
Base/res/html/misc/test.ttf
Normal file
BIN
Base/res/html/misc/test.ttf
Normal file
Binary file not shown.
Loading…
Reference in a new issue