Summary
When I open a page on Amnesty international, the quotes sources (visible after clicking one of the sections) are rendered wrong. In particular, the text style(?) is regular, not italics. This presumably affects many websites, Amnesty is just where I found it.
The root cause seems to be that Ladybird doesn't "create" the italics version of a font, if it isn't explicitly baked into the font data already. (This seems to include other attributes like font weight, i.e. "bold".)
The reduced testcase contains the smallest CC-licensed font I could easily find. Since it's CC-BY-4.0, I expect that you will want to replace the specific font instance before adding this testcase to the test suite.
(The bugtracker only find an unrelated issue for "italics" and nothing for "slanted".)
Operating system
Linux
Steps to reproduce
Amnesty website:
- Open https://www.amnesty.de/glossar-fuer-diskriminierungssensible-sprache
- Click the section titled "Ausländer"
- Consider the text "Quelle: Neue Deutsche Medienmacher*innen Stand 06/2023"
Reduced testcase:
- Open the reduced testcase (i.e. save to HTML-file and paste the address into the browser)
- Consider the text "C'est ne pas italics"
Expected behavior
"Quelle: Neue Deutsche Medienmacher*innen Stand 06/2023" and "C'est ne pas italics" should be in italics. (Also, "bold" should be bold.)
Actual behavior
"Quelle: Neue Deutsche Medienmacher*innen Stand 06/2023" and "C'est ne pas italics" are not in italics. (Also, "bold" is not bold.)
URL for a reduced test case
N/A
HTML/SVG/etc. source for a reduced test case
<!DOCTYPE html><html><head><style>
html{font-family:"XYZ",sans-serif; font-size:72pt;}
@font-face{font-family:"XYZ";
src:url(data:font/woff;base64,d09GMgABAAAAAAfQAA4AAAAAJ2AAAAd3AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGigGVgCCYggEEQgKvQC6QAuBXAABNgIkA4M0BCAFg0gHghEbTiQjESZ8FAGgzgPHWHp6V6HQNZFIJAyixuD4cHDpXVxri2gc2RJaz5+OdLJx5OFC8fBg0/L90Uir/V/2eol1yN1dEk0YLB0gVbFC3FHHVJIdhJK5I5iLuT3cUhjmEzHMrBMSqUMAFADM/639r678/xGRJFqiaSgkGiGtnTuct3MHU5udfZfZL2IRGnTTLh4ah0QoxIpHj4REy36MLY362gDxmtvp+iVFwFf///GfwdceP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/Ygd/Kzd/4ix7VkmVlbtsGanXXbbY6999jvgoEMOO+KoY46bnhAMhSPRWDyRTKUz2RwGRyBRaAwWhyeIkqyomm6Ylu24Xr5QLJUr1Vq90Wy1O91efzAcjSfT2Tz83gUv9wr4LLzZ7+Hrdb5BtNseuvs2rB75O1lexVoyhgE=)
format("woff")}<!-- CC-BY-4.0: https://tinyworlds.itch.io/free-pixel-font-thaleah -->
</style></head><body>
<em>C'est ne pas italics</em><br>
<b>C'est ne pas bold</b><br>
<span>C'est ordinaire</span>
Log output and (if possible) backtrace
Screenshots or screen recordings
Build flags or config settings
default, d0571bf (i.e. after #10579 has been merged)
Summary
When I open a page on Amnesty international, the quotes sources (visible after clicking one of the sections) are rendered wrong. In particular, the text style(?) is regular, not italics. This presumably affects many websites, Amnesty is just where I found it.
The root cause seems to be that Ladybird doesn't "create" the italics version of a font, if it isn't explicitly baked into the font data already. (This seems to include other attributes like font weight, i.e. "bold".)
The reduced testcase contains the smallest CC-licensed font I could easily find. Since it's CC-BY-4.0, I expect that you will want to replace the specific font instance before adding this testcase to the test suite.
(The bugtracker only find an unrelated issue for "italics" and nothing for "slanted".)
Operating system
Linux
Steps to reproduce
Amnesty website:
Reduced testcase:
Expected behavior
"Quelle: Neue Deutsche Medienmacher*innen Stand 06/2023" and "C'est ne pas italics" should be in italics. (Also, "bold" should be bold.)
Actual behavior
"Quelle: Neue Deutsche Medienmacher*innen Stand 06/2023" and "C'est ne pas italics" are not in italics. (Also, "bold" is not bold.)
URL for a reduced test case
N/A
HTML/SVG/etc. source for a reduced test case
Log output and (if possible) backtrace
Screenshots or screen recordings
Build flags or config settings
default, d0571bf (i.e. after #10579 has been merged)