From 321121c6c3726a7b5604bb52ef7d55dd362d9a02 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 20 Nov 2022 18:14:13 +0100 Subject: Move font folder --- tests/README.md | 3 ++- tests/fonts/IBMPlexMono-Bold.ttf | Bin 0 -> 111944 bytes tests/fonts/IBMPlexMono-Regular.ttf | Bin 0 -> 109272 bytes tests/fonts/IBMPlexSans-Bold.ttf | Bin 0 -> 175212 bytes tests/fonts/IBMPlexSans-BoldItalic.ttf | Bin 0 -> 184200 bytes tests/fonts/IBMPlexSans-Italic.ttf | Bin 0 -> 183496 bytes tests/fonts/IBMPlexSans-Regular.ttf | Bin 0 -> 175232 bytes tests/fonts/IBMPlexSansDevanagari-Regular.ttf | Bin 0 -> 350804 bytes tests/fonts/IBMPlexSerif-Regular.ttf | Bin 0 -> 159828 bytes tests/fonts/LatinModernRoman-Bold.otf | Bin 0 -> 111240 bytes tests/fonts/LatinModernRoman-Regular.otf | Bin 0 -> 111536 bytes tests/fonts/NewCMMath-Regular.otf | Bin 0 -> 1229208 bytes tests/fonts/NotoColorEmoji.ttf | Bin 0 -> 9867108 bytes tests/fonts/NotoSansArabic-Regular.ttf | Bin 0 -> 140400 bytes tests/fonts/NotoSerifCJKsc-Regular.otf | Bin 0 -> 23613224 bytes tests/fonts/NotoSerifHebrew-Bold.ttf | Bin 0 -> 21376 bytes tests/fonts/NotoSerifHebrew-Regular.ttf | Bin 0 -> 21488 bytes tests/fonts/PTSans-Regular.ttf | Bin 0 -> 278168 bytes tests/fonts/Roboto-Regular.ttf | Bin 0 -> 305608 bytes tests/fonts/TwitterColorEmoji.ttf | Bin 0 -> 13356392 bytes tests/fonts/Ubuntu-Regular.ttf | Bin 0 -> 299684 bytes tests/src/benches.rs | 2 +- tests/src/tests.rs | 2 +- 23 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 tests/fonts/IBMPlexMono-Bold.ttf create mode 100644 tests/fonts/IBMPlexMono-Regular.ttf create mode 100644 tests/fonts/IBMPlexSans-Bold.ttf create mode 100644 tests/fonts/IBMPlexSans-BoldItalic.ttf create mode 100644 tests/fonts/IBMPlexSans-Italic.ttf create mode 100644 tests/fonts/IBMPlexSans-Regular.ttf create mode 100644 tests/fonts/IBMPlexSansDevanagari-Regular.ttf create mode 100644 tests/fonts/IBMPlexSerif-Regular.ttf create mode 100644 tests/fonts/LatinModernRoman-Bold.otf create mode 100644 tests/fonts/LatinModernRoman-Regular.otf create mode 100644 tests/fonts/NewCMMath-Regular.otf create mode 100644 tests/fonts/NotoColorEmoji.ttf create mode 100644 tests/fonts/NotoSansArabic-Regular.ttf create mode 100644 tests/fonts/NotoSerifCJKsc-Regular.otf create mode 100644 tests/fonts/NotoSerifHebrew-Bold.ttf create mode 100644 tests/fonts/NotoSerifHebrew-Regular.ttf create mode 100644 tests/fonts/PTSans-Regular.ttf create mode 100644 tests/fonts/Roboto-Regular.ttf create mode 100644 tests/fonts/TwitterColorEmoji.ttf create mode 100644 tests/fonts/Ubuntu-Regular.ttf (limited to 'tests') diff --git a/tests/README.md b/tests/README.md index baca9148..7ad0535c 100644 --- a/tests/README.md +++ b/tests/README.md @@ -4,11 +4,12 @@ Top level directory structure: - `src`: Testing code. - `typ`: Input files. -- `res`: Resource files used by tests. - `ref`: Reference images which the output is compared with to determine whether a test passed or failed. - `png`: PNG files produced by tests. - `pdf`: PDF files produced by tests. +- `res`: Resource files used by tests. +- `fonts`: Font files used for tests. ## Running the tests Running all tests (including unit tests): diff --git a/tests/fonts/IBMPlexMono-Bold.ttf b/tests/fonts/IBMPlexMono-Bold.ttf new file mode 100644 index 00000000..2ad2fa1d Binary files /dev/null and b/tests/fonts/IBMPlexMono-Bold.ttf differ diff --git a/tests/fonts/IBMPlexMono-Regular.ttf b/tests/fonts/IBMPlexMono-Regular.ttf new file mode 100644 index 00000000..ef3bc4b3 Binary files /dev/null and b/tests/fonts/IBMPlexMono-Regular.ttf differ diff --git a/tests/fonts/IBMPlexSans-Bold.ttf b/tests/fonts/IBMPlexSans-Bold.ttf new file mode 100644 index 00000000..0e9eb07b Binary files /dev/null and b/tests/fonts/IBMPlexSans-Bold.ttf differ diff --git a/tests/fonts/IBMPlexSans-BoldItalic.ttf b/tests/fonts/IBMPlexSans-BoldItalic.ttf new file mode 100644 index 00000000..07f8bc87 Binary files /dev/null and b/tests/fonts/IBMPlexSans-BoldItalic.ttf differ diff --git a/tests/fonts/IBMPlexSans-Italic.ttf b/tests/fonts/IBMPlexSans-Italic.ttf new file mode 100644 index 00000000..9ef096fe Binary files /dev/null and b/tests/fonts/IBMPlexSans-Italic.ttf differ diff --git a/tests/fonts/IBMPlexSans-Regular.ttf b/tests/fonts/IBMPlexSans-Regular.ttf new file mode 100644 index 00000000..f1c3da2f Binary files /dev/null and b/tests/fonts/IBMPlexSans-Regular.ttf differ diff --git a/tests/fonts/IBMPlexSansDevanagari-Regular.ttf b/tests/fonts/IBMPlexSansDevanagari-Regular.ttf new file mode 100644 index 00000000..5d7c8f0f Binary files /dev/null and b/tests/fonts/IBMPlexSansDevanagari-Regular.ttf differ diff --git a/tests/fonts/IBMPlexSerif-Regular.ttf b/tests/fonts/IBMPlexSerif-Regular.ttf new file mode 100644 index 00000000..7d6dc5c1 Binary files /dev/null and b/tests/fonts/IBMPlexSerif-Regular.ttf differ diff --git a/tests/fonts/LatinModernRoman-Bold.otf b/tests/fonts/LatinModernRoman-Bold.otf new file mode 100644 index 00000000..7d6afa73 Binary files /dev/null and b/tests/fonts/LatinModernRoman-Bold.otf differ diff --git a/tests/fonts/LatinModernRoman-Regular.otf b/tests/fonts/LatinModernRoman-Regular.otf new file mode 100644 index 00000000..6a96b468 Binary files /dev/null and b/tests/fonts/LatinModernRoman-Regular.otf differ diff --git a/tests/fonts/NewCMMath-Regular.otf b/tests/fonts/NewCMMath-Regular.otf new file mode 100644 index 00000000..82221fb8 Binary files /dev/null and b/tests/fonts/NewCMMath-Regular.otf differ diff --git a/tests/fonts/NotoColorEmoji.ttf b/tests/fonts/NotoColorEmoji.ttf new file mode 100644 index 00000000..2c1f1043 Binary files /dev/null and b/tests/fonts/NotoColorEmoji.ttf differ diff --git a/tests/fonts/NotoSansArabic-Regular.ttf b/tests/fonts/NotoSansArabic-Regular.ttf new file mode 100644 index 00000000..94eead4c Binary files /dev/null and b/tests/fonts/NotoSansArabic-Regular.ttf differ diff --git a/tests/fonts/NotoSerifCJKsc-Regular.otf b/tests/fonts/NotoSerifCJKsc-Regular.otf new file mode 100644 index 00000000..4c5f715b Binary files /dev/null and b/tests/fonts/NotoSerifCJKsc-Regular.otf differ diff --git a/tests/fonts/NotoSerifHebrew-Bold.ttf b/tests/fonts/NotoSerifHebrew-Bold.ttf new file mode 100644 index 00000000..e7cbd93a Binary files /dev/null and b/tests/fonts/NotoSerifHebrew-Bold.ttf differ diff --git a/tests/fonts/NotoSerifHebrew-Regular.ttf b/tests/fonts/NotoSerifHebrew-Regular.ttf new file mode 100644 index 00000000..27893f10 Binary files /dev/null and b/tests/fonts/NotoSerifHebrew-Regular.ttf differ diff --git a/tests/fonts/PTSans-Regular.ttf b/tests/fonts/PTSans-Regular.ttf new file mode 100644 index 00000000..5222968f Binary files /dev/null and b/tests/fonts/PTSans-Regular.ttf differ diff --git a/tests/fonts/Roboto-Regular.ttf b/tests/fonts/Roboto-Regular.ttf new file mode 100644 index 00000000..500b1045 Binary files /dev/null and b/tests/fonts/Roboto-Regular.ttf differ diff --git a/tests/fonts/TwitterColorEmoji.ttf b/tests/fonts/TwitterColorEmoji.ttf new file mode 100644 index 00000000..a8f829ac Binary files /dev/null and b/tests/fonts/TwitterColorEmoji.ttf differ diff --git a/tests/fonts/Ubuntu-Regular.ttf b/tests/fonts/Ubuntu-Regular.ttf new file mode 100644 index 00000000..f98a2dab Binary files /dev/null and b/tests/fonts/Ubuntu-Regular.ttf differ diff --git a/tests/src/benches.rs b/tests/src/benches.rs index 844f3bf0..5c9b5433 100644 --- a/tests/src/benches.rs +++ b/tests/src/benches.rs @@ -10,7 +10,7 @@ use typst::{Config, World}; use unscanny::Scanner; const TEXT: &str = include_str!("../typ/benches/bench.typ"); -const FONT: &[u8] = include_bytes!("../../fonts/IBMPlexSans-Regular.ttf"); +const FONT: &[u8] = include_bytes!("../fonts/IBMPlexSans-Regular.ttf"); main!( bench_decode, diff --git a/tests/src/tests.rs b/tests/src/tests.rs index 237eaf22..cdd82117 100644 --- a/tests/src/tests.rs +++ b/tests/src/tests.rs @@ -28,7 +28,7 @@ const TYP_DIR: &str = "typ"; const REF_DIR: &str = "ref"; const PNG_DIR: &str = "png"; const PDF_DIR: &str = "pdf"; -const FONT_DIR: &str = "../fonts"; +const FONT_DIR: &str = "fonts"; fn main() { let args = Args::new(env::args().skip(1)); -- cgit v1.2.3