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"
17 using namespace lyx::support;
20 LyXFont & LyXFont::lyxRead(LyXLex & lex)
23 bool finished = false;
24 while (!finished && lex.isOK() && !error) {
26 string const tok = ascii_lowercase(lex.getString());
30 } else if (tok == "endfont") {
32 } else if (tok == "family") {
34 } else if (tok == "series") {
36 } else if (tok == "shape") {
38 } else if (tok == "size") {
40 } else if (tok == "misc") {
42 } else if (tok == "color") {
45 lex.printError("Unknown tag `$$Token'");