From 8b793d88b54492dba908c3e20b9270a3d5755978 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sat, 23 Jan 2010 01:27:42 +0000 Subject: [PATCH] Fix bug #6469: Times Roman and \textgreek produce error with pdflatex on a PC The problem here is that the metafont sources and tfm files are missing in normal installations, because the Times Roman Greek fonts are not free and should be purchased. When the grtimes package is not installed, the fonts are substitued with cmr glyphs. However, if grtimes is installed and and the actual fonts are missing, an error is generated. So, we simply check whether the greek fonts are installed and, if they are not, we perform the font substitution by ourselves. In this way the error is avoided whether grtimes is installed or not. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33169 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/LaTeXFeatures.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp index 7b32eac8a1..8733032561 100644 --- a/src/LaTeXFeatures.cpp +++ b/src/LaTeXFeatures.cpp @@ -200,7 +200,8 @@ static docstring const textgreek_def = from_ascii( " \\fontencoding{LGR}\\selectfont\\def\\encodingdefault{LGR}%\n" " \\renewcommand{\\~}{\\perispomeni}%\n" "}}\n" - "\\DeclareRobustCommand{\\textgreek}[1]{\\leavevmode{\\greektext #1}}\n" + "\\DeclareRobustCommand{\\textgreek}[1]{\\leavevmode{%\n" + " \\IfFileExists{grtm10.tfm}{}{\\fontfamily{cmr}}\\greektext #1}}\n" "\\DeclareFontEncoding{LGR}{}{}\n"); static docstring const textcyr_def = from_ascii( -- 2.39.2