mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
ctests: pdf export for korean documents
Use Nanum-font for tests to get a readable pdf with luatatex/xelatex
This commit is contained in:
parent
4fb68544c6
commit
39c79a72be
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user