Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: LayoutTests/fast/text/font-weight-variant.html

Issue 542603004: [DirectWrite] Add support for font-weight suffixes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressing cpu's comments Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/platform/fonts/win/FontCacheSkiaWin.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/text/font-weight-variant.html
diff --git a/LayoutTests/fast/text/font-weight-variant.html b/LayoutTests/fast/text/font-weight-variant.html
new file mode 100644
index 0000000000000000000000000000000000000000..165fdefaf8b2f2e9b060fffb1408022f20a256aa
--- /dev/null
+++ b/LayoutTests/fast/text/font-weight-variant.html
@@ -0,0 +1,70 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <style>
+ div { font-family: Segoe UI; }
+ .light { font-family: Segoe UI Light; }
+ .semibold { font-family: Segoe UI Semibold; }
+ </style>
+ </head>
+ <body>
+ <section>
+ <h2>font-weight: 200 vs light</h2>
+ <div style="font-weight: 200">Back in June we delivered oxygen equipment of the same size.</div>
+ <div class="light">Back in June we delivered oxygen equipment of the same size.</div>
+ <div class="light" style="font-weight: 200">Back in June we delivered oxygen equipment of the same size.</div>
+ <p>
+ The three lines above should have the same weight.
+ </p>
+ </section>
+
+ <section>
+ <h2>font-weight: 600 vs semibold</h2>
+ <div style="font-weight: 600">Back in June we delivered oxygen equipment of the same size.</div>
+ <div class="semibold">Back in June we delivered oxygen equipment of the same size.</div>
+ <div class="semibold" style="font-weight: 600">Back in June we delivered oxygen equipment of the same size.</div>
+ <p>
+ The three lines above should have the same weight.
+ </p>
+ </section>
+
+ <section>
+ <h2>Specific weight, Segoe UI</h2>
+ <div style="font-weight: 100">font-weight: 100 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div style="font-weight: 200">font-weight: 200 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div style="font-weight: 300">font-weight: 300 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div style="font-weight: 400">font-weight: 400 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div style="font-weight: 500">font-weight: 500 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div style="font-weight: 600">font-weight: 600 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div style="font-weight: 700">font-weight: 700 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div style="font-weight: 800">font-weight: 800 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div style="font-weight: 900">font-weight: 900 - Back in June we delivered oxygen equipment of the same size.</div>
+ </section>
+
+ <section>
+ <h2>Specific weight, Segoe UI Light</h2>
+ <div class="light" style="font-weight: 100">font-weight: 100 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div class="light" style="font-weight: 200">font-weight: 200 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div class="light" style="font-weight: 300">font-weight: 300 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div class="light" style="font-weight: 400">font-weight: 400 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div class="light" style="font-weight: 500">font-weight: 500 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div class="light" style="font-weight: 600">font-weight: 600 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div class="light" style="font-weight: 700">font-weight: 700 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div class="light" style="font-weight: 800">font-weight: 800 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div class="light" style="font-weight: 900">font-weight: 900 - Back in June we delivered oxygen equipment of the same size.</div>
+ </section>
+
+ <section>
+ <h2>Specific weight, Segoe UI Semibold</h2>
+ <div class="semibold" style="font-weight: 100">font-weight: 100 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div class="semibold" style="font-weight: 200">font-weight: 200 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div class="semibold" style="font-weight: 300">font-weight: 300 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div class="semibold" style="font-weight: 400">font-weight: 400 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div class="semibold" style="font-weight: 500">font-weight: 500 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div class="semibold" style="font-weight: 600">font-weight: 600 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div class="semibold" style="font-weight: 700">font-weight: 700 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div class="semibold" style="font-weight: 800">font-weight: 800 - Back in June we delivered oxygen equipment of the same size.</div>
+ <div class="semibold" style="font-weight: 900">font-weight: 900 - Back in June we delivered oxygen equipment of the same size.</div>
+ </section>
+ </body>
+</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/platform/fonts/win/FontCacheSkiaWin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698