diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /layout/reftests/font-face/synthetic-weight-style.html | |
parent | Initial commit. (diff) | |
download | firefox-e51783d008170d9ab27d25da98ca3a38b0a41b67.tar.xz firefox-e51783d008170d9ab27d25da98ca3a38b0a41b67.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/font-face/synthetic-weight-style.html')
-rw-r--r-- | layout/reftests/font-face/synthetic-weight-style.html | 165 |
1 files changed, 165 insertions, 0 deletions
diff --git a/layout/reftests/font-face/synthetic-weight-style.html b/layout/reftests/font-face/synthetic-weight-style.html new file mode 100644 index 0000000000..332e62eae3 --- /dev/null +++ b/layout/reftests/font-face/synthetic-weight-style.html @@ -0,0 +1,165 @@ +<!DOCTYPE HTML> +<html> +<head> +<title>@font-face and synthetic rendering</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + +<style type="text/css"> + +@import url(../fonts/mplus/mplusfonts.css); + +body { + margin: 50px; + font-family: mplus1p, Futura, sans-serif; + font-size: 18pt; +} + +table { + border-collapse: collapse; + margin-left: 1em; +} + +td + td { + padding-left: 1em; +} + +@font-face { font-family: mplus-w1; font-weight: 100; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +@font-face { font-family: mplus-w1; font-style: italic; font-weight: 100; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +@font-face { font-family: mplus-w1; font-style: oblique; font-weight: 100; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +.mplus-w1 { font-family: mplus-w1; } + +@font-face { font-family: mplus-w2; font-weight: 200; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +@font-face { font-family: mplus-w2; font-style: italic; font-weight: 200; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +@font-face { font-family: mplus-w2; font-style: oblique; font-weight: 200; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +.mplus-w2 { font-family: mplus-w2; } + +@font-face { font-family: mplus-w3; font-weight: 300; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +@font-face { font-family: mplus-w3; font-style: italic; font-weight: 300; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +@font-face { font-family: mplus-w3; font-style: oblique; font-weight: 300; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +.mplus-w3 { font-family: mplus-w3; } + +@font-face { font-family: mplus-w4; font-weight: 400; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +@font-face { font-family: mplus-w4; font-style: italic; font-weight: 400; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +@font-face { font-family: mplus-w4; font-style: oblique; font-weight: 400; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +.mplus-w4 { font-family: mplus-w4; } + +@font-face { font-family: mplus-w5; font-weight: 500; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +@font-face { font-family: mplus-w5; font-style: italic; font-weight: 500; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +@font-face { font-family: mplus-w5; font-style: oblique; font-weight: 500; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +.mplus-w5 { font-family: mplus-w5; } + +@font-face { font-family: mplus-w6; font-weight: 600; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +@font-face { font-family: mplus-w6; font-style: italic; font-weight: 600; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +@font-face { font-family: mplus-w6; font-style: oblique; font-weight: 600; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +.mplus-w6 { font-family: mplus-w6; } + +@font-face { font-family: mplus-w7; font-weight: 700; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +@font-face { font-family: mplus-w7; font-style: italic; font-weight: 700; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +@font-face { font-family: mplus-w7; font-style: oblique; font-weight: 700; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +.mplus-w7 { font-family: mplus-w7; } + +@font-face { font-family: mplus-w8; font-weight: 800; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +@font-face { font-family: mplus-w8; font-style: italic; font-weight: 800; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +@font-face { font-family: mplus-w8; font-style: oblique; font-weight: 800; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +.mplus-w8 { font-family: mplus-w8; } + +@font-face { font-family: mplus-w9; font-weight: 900; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +@font-face { font-family: mplus-w9; font-style: italic; font-weight: 900; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +@font-face { font-family: mplus-w9; font-style: oblique; font-weight: 900; src: url(../fonts/mplus/mplus-1p-regular.ttf); } +.mplus-w9 { font-family: mplus-w9; } + +</style> + + +</head> + +<body> + +<h4>Text below should appear in normal face with no synthetic bolding/italics</h4> + +<table> +<tr class="mplus-w1"> +<td style="font-family: mplus1p;">100</td> +<td>Regular</td> +<td style="font-style: italic;">Italic</td> +<td style="font-style: oblique;">Oblique</td> +<td style="font-weight: 100;">Regular</td> +<td style="font-style: italic;font-weight: 100;">Italic</td> +<td style="font-style: oblique;font-weight: 100;">Oblique</td> +</tr> +<tr class="mplus-w2"> +<td style="font-family: mplus1p;">200</td> +<td>Regular</td> +<td style="font-style: italic;">Italic</td> +<td style="font-style: oblique;">Oblique</td> +<td style="font-weight: 200;">Regular</td> +<td style="font-style: italic;font-weight: 200;">Italic</td> +<td style="font-style: oblique;font-weight: 200;">Oblique</td> +</tr> +<tr class="mplus-w3"> +<td style="font-family: mplus1p;">300</td> +<td>Regular</td> +<td style="font-style: italic;">Italic</td> +<td style="font-style: oblique;">Oblique</td> +<td style="font-weight: 300;">Regular</td> +<td style="font-style: italic;font-weight: 300;">Italic</td> +<td style="font-style: oblique;font-weight: 300;">Oblique</td> +</tr> +<tr class="mplus-w4"> +<td style="font-family: mplus1p;">400</td> +<td>Regular</td> +<td style="font-style: italic;">Italic</td> +<td style="font-style: oblique;">Oblique</td> +<td style="font-weight: 400;">Regular</td> +<td style="font-style: italic;font-weight: 400;">Italic</td> +<td style="font-style: oblique;font-weight: 400;">Oblique</td> +</tr> +<tr class="mplus-w5"> +<td style="font-family: mplus1p;">500</td> +<td>Regular</td> +<td style="font-style: italic;">Italic</td> +<td style="font-style: oblique;">Oblique</td> +<td style="font-weight: 500;">Regular</td> +<td style="font-style: italic;font-weight: 500;">Italic</td> +<td style="font-style: oblique;font-weight: 500;">Oblique</td> +</tr> +<tr class="mplus-w6"> +<td style="font-family: mplus1p;">600</td> +<td>Regular</td> +<td style="font-style: italic;">Italic</td> +<td style="font-style: oblique;">Oblique</td> +<td style="font-weight: 600;">Regular</td> +<td style="font-style: italic;font-weight: 600;">Italic</td> +<td style="font-style: oblique;font-weight: 600;">Oblique</td> +</tr> +<tr class="mplus-w7"> +<td style="font-family: mplus1p;">700</td> +<td>Regular</td> +<td style="font-style: italic;">Italic</td> +<td style="font-style: oblique;">Oblique</td> +<td style="font-weight: 700;">Regular</td> +<td style="font-style: italic;font-weight: 700;">Italic</td> +<td style="font-style: oblique;font-weight: 700;">Oblique</td> +</tr> +<tr class="mplus-w8"> +<td style="font-family: mplus1p;">800</td> +<td>Regular</td> +<td style="font-style: italic;">Italic</td> +<td style="font-style: oblique;">Oblique</td> +<td style="font-weight: 800;">Regular</td> +<td style="font-style: italic;font-weight: 800;">Italic</td> +<td style="font-style: oblique;font-weight: 800;">Oblique</td> +</tr> +<tr class="mplus-w9"> +<td style="font-family: mplus1p;">900</td> +<td>Regular</td> +<td style="font-style: italic;">Italic</td> +<td style="font-style: oblique;">Oblique</td> +<td style="font-weight: 900;">Regular</td> +<td style="font-style: italic;font-weight: 900;">Italic</td> +<td style="font-style: oblique;font-weight: 900;">Oblique</td> +</tr> +</table> + +</body> +</html>
\ No newline at end of file |