X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLaTeXFonts.h;h=7087649a4dcfc8c8b217fc6a5cb2c2486b1331f9;hb=1e519d1115f41f71c253cb9e2fbb7803e9a583a9;hp=a77902a5800e985c38f5c9dcb238933e00887da7;hpb=51aebc9327345f6ea065035f489dbfec1568279f;p=lyx.git diff --git a/src/LaTeXFonts.h b/src/LaTeXFonts.h index a77902a580..7087649a4d 100644 --- a/src/LaTeXFonts.h +++ b/src/LaTeXFonts.h @@ -26,7 +26,8 @@ class Lexer; class LaTeXFont { public: /// TeX font - LaTeXFont() : osfdefault_(false), switchdefault_(false) {} + // FIXME Add fontenc tag to classes which is used if no font is specified? + LaTeXFont() : osfdefault_(false), switchdefault_(false) { fontenc_.push_back("T1"); } /// The font name docstring const & name() { return name_; } /// The name to appear in the document dialog @@ -35,6 +36,10 @@ public: docstring const & family() { return family_; } /// The package that provides this font docstring const & package() { return package_; } + /// Does this provide a specific font encoding? + bool hasFontenc(std::string const &) const; + /// The font encoding(s) + std::vector const & fontencs() const { return fontenc_; } /// Alternative font if package() is not available std::vector const & altfonts() { return altfonts_; } /// A font that provides all families @@ -109,6 +114,8 @@ private: /// docstring package_; /// + std::vector fontenc_; + /// std::vector altfonts_; /// docstring completefont_;