]> git.lyx.org Git - features.git/commitdiff
ctests: pdf export for korean documents
authorKornel Benko <kornel@lyx.org>
Mon, 10 Mar 2014 12:33:46 +0000 (13:33 +0100)
committerKornel Benko <kornel@lyx.org>
Mon, 10 Mar 2014 12:33:46 +0000 (13:33 +0100)
Use Nanum-font for tests to get a readable pdf with luatatex/xelatex

development/autotests/useSystemFonts.pl

index 7b71c82713b3bda61900e49fc494da725b92452d..75d37e1a40238202e55a3a6645a60230247cda36 100644 (file)
@@ -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("Format (e.g. pdf4) not defined") if (! defined($format));
+diestack("FoNamunrmat (e.g. pdf4) not defined") if (! defined($format));
 diestack("Font type (e.g. texF) not defined") if (! defined($fontT));
 
 $source = File::Spec->rel2abs($source);
@@ -94,6 +94,11 @@ if ($fontT eq "systemF") {
     $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";