]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFonts.h
de.po
[lyx.git] / src / LaTeXFonts.h
index a77902a5800e985c38f5c9dcb238933e00887da7..7087649a4dcfc8c8b217fc6a5cb2c2486b1331f9 100644 (file)
@@ -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<std::string> const & fontencs() const { return fontenc_; }
        /// Alternative font if package() is not available
        std::vector<docstring> const & altfonts() { return altfonts_; }
        /// A font that provides all families
@@ -109,6 +114,8 @@ private:
        ///
        docstring package_;
        ///
+       std::vector<std::string> fontenc_;
+       ///
        std::vector<docstring> altfonts_;
        ///
        docstring completefont_;