- // Special code for the symbol family
- if (family == LyXFont::SYMBOL_FAMILY){
- fontinfo[family][series][shape] = new FontInfo("-*-symbol-*");
- return;
+ // Special fonts
+ switch (family)
+ {
+ case LyXFont::SYMBOL_FAMILY:
+ fontinfo[family][series][shape] =
+ new FontInfo("-*-symbol-*-*-*-*-*-*-*-*-*-*-*-*");
+ return;
+
+ case LyXFont::CMR_FAMILY:
+ fontinfo[family][series][shape] =
+ new FontInfo("-*-cmr-medium-*-*-*-*-*-*-*-*-*-*-*");
+ return;
+
+ case LyXFont::CMSY_FAMILY:
+ fontinfo[family][series][shape] =
+ new FontInfo("-*-cmsy-*-*-*-*-*-*-*-*-*-*-*-*");
+ return;
+
+ case LyXFont::CMM_FAMILY:
+ fontinfo[family][series][shape] =
+ new FontInfo("-*-cmmi-medium-*-*-*-*-*-*-*-*-*-*-*");
+ return;
+
+ case LyXFont::CMEX_FAMILY:
+ fontinfo[family][series][shape] =
+ new FontInfo("-*-cmex-*-*-*-*-*-*-*-*-*-*-*-*");
+ return;
+
+ case LyXFont::MSA_FAMILY:
+ fontinfo[family][series][shape] =
+ new FontInfo("-*-msam-*-*-*-*-*-*-*-*-*-*-*-*");
+ return;
+
+ case LyXFont::MSB_FAMILY:
+ fontinfo[family][series][shape] =
+ new FontInfo("-*-msbm-*-*-*-*-*-*-*-*-*-*-*-*");
+ return;
+
+ default:
+ break;