}
-QString rawName(QString const & family)
-{
- for (size_t i = 0; i < nr_symbol_fonts; ++i)
- if (family == symbol_fonts[i].family)
- return symbol_fonts[i].xlfd;
-
- LYXERR(Debug::FONT, "BUG: family not found !");
- return QString();
-}
-
-
QString symbolFamily(FontFamily family)
{
for (size_t i = 0; i < nr_symbol_fonts; ++i) {
return font;
}
- // A simple setFamily() fails on Qt 2
-
- QString const raw = rawName(family);
- LYXERR(Debug::FONT, "Trying " << raw << " ... ");
- font.setRawName(raw);
+ LYXERR(Debug::FONT, "Trying " << family << " ... ");
+ font.setFamily(family);
if (isChosenFont(font, family, QString())) {
LYXERR(Debug::FONT, "raw version!");
else
LYXERR(Debug::FONT, "This font is NOT an exact match");
- LYXERR(Debug::FONT, "XFLD: " << font.rawName());
-
font.setPointSizeF(f.realSize() * lyxrc.currentZoom / 100.0);
LYXERR(Debug::FONT, "The font has size: " << font.pointSizeF());