X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=development%2Fautotests%2FuseSystemFonts.pl;h=0c48880746354fa404a674e66667f88fa28689b4;hb=9594f6fc2d39efc2170c190ce927223402a66d63;hp=75d37e1a40238202e55a3a6645a60230247cda36;hpb=39c79a72be393b36e299490d189ff88c57bf901c;p=lyx.git diff --git a/development/autotests/useSystemFonts.pl b/development/autotests/useSystemFonts.pl index 75d37e1a40..0c48880746 100644 --- a/development/autotests/useSystemFonts.pl +++ b/development/autotests/useSystemFonts.pl @@ -67,7 +67,7 @@ my ($source, $dest, $format, $fontT, $rest) = @ARGV; diestack("Too many arguments") if (defined($rest)); diestack("Sourcefilename not defined") if (! defined($source)); diestack("Destfilename not defined") if (! defined($dest)); -diestack("FoNamunrmat (e.g. pdf4) not defined") if (! defined($format)); +diestack("Format (e.g. pdf4) not defined") if (! defined($format)); diestack("Font type (e.g. texF) not defined") if (! defined($fontT)); $source = File::Spec->rel2abs($source); @@ -79,7 +79,12 @@ if ($source =~ /\/([a-z][a-z](_[A-Z][A-Z])?)\//) { $lang = $1; } if ($fontT eq "systemF") { - if ($lang =~ /^(he|el|ru|uk|main)$/) { + if ($lang =~ /^(ru|uk)$/) { + $font{roman} = "DejaVu Serif"; + $font{sans} = "DejaVu Sans"; + $font{typewriter} = "DejaVu Sans Mono"; + } + elsif ($lang =~ /^(he|el|main)$/) { $font{roman} = "FreeSans"; $font{sans} = "FreeSans"; $font{typewriter} = "FreeSans"; @@ -99,6 +104,12 @@ if ($fontT eq "systemF") { $font{sans} = "NanumGothic"; $font{typewriter} = "NanumGothic"; } + elsif ($lang eq "ar" ) { + # available in 'fonts-sil-scheherazade' package + $font{roman} = "Scheherazade"; + $font{sans} = "Scheherazade"; + $font{typewriter} = "Scheherazade"; + } else { # default system fonts $font{roman} = "FreeSans";