From 7df27fb76c2d0c8a92d23ddaf6d55edf8a71425e Mon Sep 17 00:00:00 2001 From: Munira Tursunova Date: Tue, 31 Aug 2021 01:00:39 -0700 Subject: [PATCH] Implement font-synthesis-weight functionality MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implement of CSS property font-synthesis-weight functionality, which controls synthesized bold. Added tests for web and system fonts. Bug: 509989 Change-Id: I11fe9eeac9cd9d143a7852023d62b0f859efe89d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3123421 Commit-Queue: Dominik Röttsches Reviewed-by: Rune Lillesveen Reviewed-by: Dominik Röttsches Cr-Commit-Position: refs/heads/main@{#916719} --- .../font-synthesis-weight-binary-ref.html | 22 +++++++++++++ .../font-synthesis-weight-binary.html | 32 +++++++++++++++++++ css/css-fonts/font-synthesis-weight-ref.html | 20 ++++++++++++ css/css-fonts/font-synthesis-weight.html | 30 +++++++++++++++++ 4 files changed, 104 insertions(+) create mode 100644 css/css-fonts/font-synthesis-weight-binary-ref.html create mode 100644 css/css-fonts/font-synthesis-weight-binary.html create mode 100644 css/css-fonts/font-synthesis-weight-ref.html create mode 100644 css/css-fonts/font-synthesis-weight.html diff --git a/css/css-fonts/font-synthesis-weight-binary-ref.html b/css/css-fonts/font-synthesis-weight-binary-ref.html new file mode 100644 index 00000000000000..67b9cc4b38c916 --- /dev/null +++ b/css/css-fonts/font-synthesis-weight-binary-ref.html @@ -0,0 +1,22 @@ + + + +CSS Test: font-synthesis-weight: none disables fake bold + + +

Test passes if the two lines below are identical (the second line is not bold), and there is no red.

+
+

Filler text

+

Filler text

+
diff --git a/css/css-fonts/font-synthesis-weight-binary.html b/css/css-fonts/font-synthesis-weight-binary.html new file mode 100644 index 00000000000000..3af12a4f4eb105 --- /dev/null +++ b/css/css-fonts/font-synthesis-weight-binary.html @@ -0,0 +1,32 @@ + + + +CSS Test: font-synthesis-weight: none disables fake bold + + + + + +

Test passes if the two lines below are identical (the second line is not bold), and there is no red.

+
+

Filler text

+

Filler text

+
diff --git a/css/css-fonts/font-synthesis-weight-ref.html b/css/css-fonts/font-synthesis-weight-ref.html new file mode 100644 index 00000000000000..8d5e3f6e08bcfe --- /dev/null +++ b/css/css-fonts/font-synthesis-weight-ref.html @@ -0,0 +1,20 @@ + + + +CSS Test: font-synthesis-weight: none disables fake bold + + +

Test passes if the two lines below are identical (the second line is not bold), and there is no red.

+
+

Filler text

+

Filler text

+
diff --git a/css/css-fonts/font-synthesis-weight.html b/css/css-fonts/font-synthesis-weight.html new file mode 100644 index 00000000000000..6213817edf6052 --- /dev/null +++ b/css/css-fonts/font-synthesis-weight.html @@ -0,0 +1,30 @@ + + + +CSS Test: font-synthesis-weight: none disables fake bold + + + + + +

Test passes if the two lines below are identical (the second line is not bold), and there is no red.

+
+

Filler text

+

Filler text

+