diff options
author | Martin Robinson <mrobinson@igalia.com> | 2024-02-28 16:09:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-28 15:09:26 +0000 |
commit | 5ba29c20ac3d048efb2ae266d6f876829f0d632e (patch) | |
tree | 47d293f60c93802f2417ae91af6e9fb8c0b0329a /components/layout_2020/flow/inline.rs | |
parent | 98bd306816f8c3d3e7569032b9b6ace76892d963 (diff) | |
download | servo-5ba29c20ac3d048efb2ae266d6f876829f0d632e.tar.gz servo-5ba29c20ac3d048efb2ae266d6f876829f0d632e.zip |
layout: Turn on synthetic small-caps for layout 2020 (#31435)
Synthetic small caps is supported by the font subsystem, but this is
disabled in Layout 2020. We can turn this on to bring support to parity
with the old layout system.
In addition to turning on synthetic small-caps this change also improves
the way that they work. Before, synthetic small caps meant that every
character was a small version of capitalized character. After this
change, capital letters are larger than small caps versions of small
letters -- matching other browsers and the common expectation of how
small caps works.
Diffstat (limited to 'components/layout_2020/flow/inline.rs')
-rw-r--r-- | components/layout_2020/flow/inline.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout_2020/flow/inline.rs b/components/layout_2020/flow/inline.rs index 41926944a91..2eedf40987e 100644 --- a/components/layout_2020/flow/inline.rs +++ b/components/layout_2020/flow/inline.rs @@ -70,7 +70,7 @@ pub(crate) struct InlineFormattingContext { #[derive(Debug, Serialize)] pub(crate) struct FontKeyAndMetrics { pub key: FontInstanceKey, - pub actual_pt_size: Au, + pub pt_size: Au, pub metrics: FontMetrics, } |