- virtual void update();
- virtual bool available(FontInfo const & f);
- inline virtual FontMetrics const & metrics(FontInfo const & f) {
- return *fontinfo(f).metrics.get();
- }
-
- /// Get the QFont for this FontInfo
- QFont const & get(FontInfo const & f) {
- return fontinfo(f).font;
- }
-
-
- /// Get font info (font + metrics) for the given LyX font.
- GuiFontInfo & fontinfo(FontInfo const & f) {
- // fi is a reference to the pointer type (GuiFontInfo *) in the
- // fontinfo_ table.
- GuiFontInfo * & fi =
- fontinfo_[f.family()][f.series()][f.realShape()][f.size()];
- if (!fi)
- fi = new GuiFontInfo(f);
- return *fi;
- }