From a5151c92a9259ac20ba0b0056230b3297ded723f Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 22 Sep 2012 10:59:53 +0200 Subject: [PATCH] Much more flexible implementation of alternative (LaTeX) fonts The LaTeX font now do not specify simply alternative packages or packages for OT1 encoding etc., but they refer to complete AltFonts (which are not directly accessible via the GUI). This way, alternative fonts can also have options (osf, sc etc.), and they can use all sorts of initializing methods (\usepackage, \setrmfamily etc.). --- lib/latexfonts | 91 +++++++--- src/LaTeXFeatures.cpp | 13 +- src/LaTeXFonts.cpp | 270 ++++++++++++++++++------------ src/LaTeXFonts.h | 52 +++--- src/frontends/qt4/GuiDocument.cpp | 18 +- src/frontends/qt4/GuiDocument.h | 2 + 6 files changed, 287 insertions(+), 159 deletions(-) diff --git a/lib/latexfonts b/lib/latexfonts index b4d19a19ad..fdb59fa070 100644 --- a/lib/latexfonts +++ b/lib/latexfonts @@ -10,11 +10,12 @@ # SwitchDefault <0|1> # Package # Requires -# AltPackages -# OT1Package -# CompletePackage +# AltFonts +# OT1Font +# CompleteFont # PackageOptions # OsfOption