From 13758b9c9795d7d6d2fa9551a8936e0f0ff27136 Mon Sep 17 00:00:00 2001 From: Eric Biedert Date: Tue, 19 Sep 2023 10:28:50 +0200 Subject: Allow multiple fallback fonts in SVGs (#2122) --- tests/ref/bugs/new-cm-svg.png | Bin 2882 -> 2845 bytes tests/ref/layout/place-float-figure.png | Bin 112275 -> 111833 bytes tests/ref/visualize/svg-text.png | Bin 12385 -> 17763 bytes tests/typ/visualize/svg-text.typ | 9 +++++++++ 4 files changed, 9 insertions(+) (limited to 'tests') diff --git a/tests/ref/bugs/new-cm-svg.png b/tests/ref/bugs/new-cm-svg.png index 2d445c3a..d75a6dbb 100644 Binary files a/tests/ref/bugs/new-cm-svg.png and b/tests/ref/bugs/new-cm-svg.png differ diff --git a/tests/ref/layout/place-float-figure.png b/tests/ref/layout/place-float-figure.png index b2755f12..bf9d21b4 100644 Binary files a/tests/ref/layout/place-float-figure.png and b/tests/ref/layout/place-float-figure.png differ diff --git a/tests/ref/visualize/svg-text.png b/tests/ref/visualize/svg-text.png index 106d1c16..b2bbe320 100644 Binary files a/tests/ref/visualize/svg-text.png and b/tests/ref/visualize/svg-text.png differ diff --git a/tests/typ/visualize/svg-text.typ b/tests/typ/visualize/svg-text.typ index 838f7360..11283a76 100644 --- a/tests/typ/visualize/svg-text.typ +++ b/tests/typ/visualize/svg-text.typ @@ -7,3 +7,12 @@ image("/files/diagram.svg"), caption: [A textful diagram], ) + +--- +#set page(width: 250pt) +#show image: set text(font: ("Roboto", "Noto Serif CJK SC")) + +#figure( + image("/files/chinese.svg"), + caption: [Bilingual text] +) -- cgit v1.2.3