]> git.lyx.org Git - features.git/commitdiff
we want XeTeX as the backend for previews when using nonTeXFonts
authorJulien Rioux <jrioux@lyx.org>
Wed, 30 Mar 2011 13:50:47 +0000 (13:50 +0000)
committerJulien Rioux <jrioux@lyx.org>
Wed, 30 Mar 2011 13:50:47 +0000 (13:50 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38160 a592a061-630c-0410-9148-cb99ea01b6c8

src/graphics/PreviewLoader.cpp

index 5d468b9e955ba5c421de02b574c8953c824f5519..b98c69080731a1808ac1ea802720b6ef8c7e981e 100644 (file)
@@ -708,7 +708,10 @@ void PreviewLoader::Impl::dumpPreamble(otexstream & os) const
 {
        // Dump the preamble only.
        OutputParams runparams(&buffer_.params().encoding());
-       runparams.flavor = OutputParams::LATEX;
+       if (buffer_.params().useNonTeXFonts)
+               runparams.flavor = OutputParams::XETEX;
+       else
+               runparams.flavor = OutputParams::LATEX;
        runparams.nice = true;
        runparams.moving_arg = true;
        runparams.free_spacing = true;