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