2 * \file tex2lyx/lyxfont.C
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"
20 using lyx::support::ascii_lowercase;
25 LyXFont & LyXFont::lyxRead(LyXLex & lex)
28 bool finished = false;
29 while (!finished && lex.isOK() && !error) {
31 string const tok = ascii_lowercase(lex.getString());
35 } else if (tok == "endfont") {
37 } else if (tok == "family") {
39 } else if (tok == "series") {
41 } else if (tok == "shape") {
43 } else if (tok == "size") {
45 } else if (tok == "misc") {
47 } else if (tok == "color") {
50 lex.printError("Unknown tag `$$Token'");