-elsif ($source =~ /\/zh_CN\//) {
- $font{roman} = "FreeSans";
- $font{sans} = "WenQuanYi Micro Hei";
- $font{typewriter} = "WenQuanYi Micro Hei";
+if ($fontT eq "systemF") {
+ if ($lang =~ /^(he|el|ru|uk|main)$/) {
+ $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";
+ }
+ else {
+ # default system fonts
+ $font{roman} = "FreeSans";
+ $font{sans} = "FreeSans";
+ $font{typewriter} = "FreeSans";
+ }