#include "debug.h"
#include "lyxrc.h"
#include "BufferView.h"
+#include "qt_helpers.h"
#include <qglobal.h>
#if QT_VERSION < 300
default:
return string();
- }
+ }
}
bool addFontPath()
lyxerr << "Adding " << dir << " to the font path.\n";
string const command = "xset fp+ " + dir;
Systemcall s;
- if (!s.startscript(Systemcall::Wait, command))
+ if (!s.startscript(Systemcall::Wait, command))
return true;
lyxerr << "Unable to add font path.\n";
}
if (tmp.empty())
return false;
else
- return token(tmp, '-', 2) ==
+ return token(tmp, '-', 2) ==
token(font.rawName().latin1(), '-', 2);
#endif
}
font.setRawName(pat.c_str());
}
}
- } else
+ } else
switch (f.family()) {
case LyXFont::ROMAN_FAMILY:
- font.setFamily(lyxrc.roman_font_name.c_str());
+ font.setFamily(makeFontName(lyxrc.roman_font_name,
+ lyxrc.roman_font_foundry).c_str());
break;
case LyXFont::SANS_FAMILY:
- font.setFamily(lyxrc.sans_font_name.c_str());
+ font.setFamily(makeFontName(lyxrc.sans_font_name,
+ lyxrc.sans_font_foundry).c_str());
break;
case LyXFont::TYPEWRITER_FAMILY:
- font.setFamily(lyxrc.typewriter_font_name.c_str());
+ font.setFamily(makeFontName(lyxrc.typewriter_font_name,
+ lyxrc.typewriter_font_foundry).c_str());
break;
default:
break;