Tests: skip the Arabic Optical kerning test without craft-fonts

optical_pair_after_rtl_separate_mark_uses_base_outline sets Noto Sans
Arabic, which is not in assets/fonts. Without CRAFT_FONTS_DIR the font
database returns a fallback face, so the test checked that face instead.
The test now skips when Noto Sans Arabic is missing, as the Shippori
Mincho tests in the same file do.
This commit is contained in:
dotCooCoo authored and bflatastic committed 2026-11-04 18:28:50 +07:00
1 parent c24c06ef7f
commit 5ebb6796fe
1 file changed
+4
+4
View File
@@ -172,6 +172,10 @@ fn optical_pair_after_separate_combining_mark_uses_base_outline() {
#[test]
fn optical_pair_after_rtl_separate_mark_uses_base_outline() {
if db().face("Noto Sans Arabic", "Regular").is_none_or(|f| f.family != "Noto Sans Arabic") {
eprintln!("skipped: built without craft-fonts (set CRAFT_FONTS_DIR to a craft-fonts checkout to run it)");
return;
}
let st = CharStyle { font_family: "Noto Sans Arabic".into(), size: 100.0, optical_kerning: true, ..CharStyle::default() };
let shaped = |text: &str, manual: bool| {
let mut style = st.clone();