my $inputEncoding = undef;
if ($fontT eq "systemF") {
- if ($font{roman} eq "default") {
- # Change non-tex fonts setting if it is "default".
- # TODO: set in document (if required).
+ if ($lang =~ /^(ru|uk|sk|el)$/) {
+ $font{roman} = "DejaVu Serif";
+ $font{sans} = "DejaVu Sans";
+ $font{typewriter} = "DejaVu Sans Mono";
+ }
+ elsif ($lang =~ /^(he)$/) {
+ $font{roman} = "FreeSans";
+ $font{sans} = "FreeSans";
+ $font{typewriter} = "FreeSans";
+ }
+ elsif ($lang eq "fa") {
+ $font{roman} = "FreeFarsi";
+ $font{sans} = "FreeFarsi";
+ $font{typewriter} = "FreeFarsi Monospace";
+ }
+ elsif ($lang eq "ko" ) {
+ # $font{roman} = "NanumGothic"; # NanumMyeongjo, NanumGothic Eco, NanumGothicCoding
+ # $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} = "FreeSerif";
$font{sans} = "FreeSans";
$font{typewriter} = "FreeMono";