mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
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/branches/BRANCH_1_6_X@33372 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ffaf6ed365
commit
e440c54a3e
@ -741,8 +741,17 @@ string const LaTeXFeatures::getMacros() const
|
||||
if (mustProvide("lyxarrow"))
|
||||
macros << lyxarrow_def << '\n';
|
||||
|
||||
if (mustProvide("textgreek"))
|
||||
macros << textgreek_def << '\n';
|
||||
if (mustProvide("textgreek")) {
|
||||
// Avoid a LaTeX error if times fonts are used and the grtimes
|
||||
// package is installed but actual fonts are not (bug 6469).
|
||||
if (params_.fontsRoman == "times")
|
||||
macros << subst(textgreek_def, "\\greektext #1",
|
||||
"%\n \\IfFileExists{grtm10.tfm}{}"
|
||||
"{\\fontfamily{cmr}}\\greektext #1")
|
||||
<< '\n';
|
||||
else
|
||||
macros << textgreek_def << '\n';
|
||||
}
|
||||
|
||||
if (mustProvide("textcyr"))
|
||||
macros << textcyr_def << '\n';
|
||||
|
@ -105,6 +105,9 @@ What's new
|
||||
|
||||
- Do not insert \foreignlanguage in ERTs (bug 6426).
|
||||
|
||||
- Allow using greek symbols also when the package grtimes is installed but
|
||||
actual fonts are not and "Times Roman" glyphs are requested (bug 6469).
|
||||
|
||||
- Reset the language at the end of the document to the correct
|
||||
language (bug 6387).
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user