- 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 "zh_CN") {
- $font{roman} = "WenQuanYi Micro Hei";
- $font{sans} = "WenQuanYi Micro Hei";
- $font{typewriter} = "WenQuanYi Micro Hei";
- }
- 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";
- }