2 * \file tex2lyx/Font.cpp
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS.
15 #include "support/lstrings.h"
21 using lyx::support::ascii_lowercase;
24 FontInfo const sane_font;
26 FontInfo const inherit_font;
28 FontInfo const ignore_font;
30 FontInfo lyxRead(Lexer & lex, FontInfo const &)
33 bool finished = false;
34 while (!finished && lex.isOK() && !error) {
36 string const tok = ascii_lowercase(lex.getString());
40 } else if (tok == "endfont") {
42 } else if (tok == "family") {
44 } else if (tok == "series") {
46 } else if (tok == "shape") {
48 } else if (tok == "size") {
50 } else if (tok == "misc") {
52 } else if (tok == "color") {
55 lex.printError("Unknown tag `$$Token'");