- if (bits == inherit) {
- bits = tmplt.bits;
- return *this;
- }
-
- if (bits.family == INHERIT_FAMILY)
- bits.family = tmplt.bits.family;
-
- if (bits.series == INHERIT_SERIES)
- bits.series = tmplt.bits.series;
-
- if (bits.shape == INHERIT_SHAPE)
- bits.shape = tmplt.bits.shape;
-
- if (bits.size == INHERIT_SIZE)
- bits.size = tmplt.bits.size;
-
- if (bits.emph == INHERIT)
- bits.emph = tmplt.bits.emph;
-
- if (bits.underbar == INHERIT)
- bits.underbar = tmplt.bits.underbar;
-
- if (bits.noun == INHERIT)
- bits.noun = tmplt.bits.noun;
-
- if (bits.color == Color_inherit)
- bits.color = tmplt.bits.color;
-
- return *this;
-}
-
+ odocstringstream os;
+ if (f.family() != INHERIT_FAMILY)
+ os << _(GUIFamilyNames[f.family()]) << ", ";
+ if (f.series() != INHERIT_SERIES)
+ os << _(GUISeriesNames[f.series()]) << ", ";
+ if (f.shape() != INHERIT_SHAPE)
+ os << _(GUIShapeNames[f.shape()]) << ", ";
+ if (f.size() != FONT_SIZE_INHERIT)
+ os << _(GUISizeNames[f.size()]) << ", ";
+ if (f.color() != Color_inherit)
+ os << lcolor.getGUIName(f.color()) << ", ";
+ // FIXME: uncomment this when we support background.
+ //if (f.background() != Color_inherit)
+ // os << lcolor.getGUIName(f.background()) << ", ";
+ if (f.emph() != FONT_INHERIT)
+ os << bformat(_("Emphasis %1$s, "),
+ _(GUIMiscNames[f.emph()]));
+ if (f.underbar() != FONT_INHERIT)
+ os << bformat(_("Underline %1$s, "),
+ _(GUIMiscNames[f.underbar()]));
+ if (f.strikeout() != FONT_INHERIT)
+ os << bformat(_("Strike out %1$s, "),
+ _(GUIMiscNames[f.strikeout()]));
+ if (f.xout() != FONT_INHERIT)
+ os << bformat(_("Cross out %1$s, "),
+ _(GUIMiscNames[f.xout()]));
+ if (f.uuline() != FONT_INHERIT)
+ os << bformat(_("Double underline %1$s, "),
+ _(GUIMiscNames[f.uuline()]));
+ if (f.uwave() != FONT_INHERIT)
+ os << bformat(_("Wavy underline %1$s, "),
+ _(GUIMiscNames[f.uwave()]));
+ if (f.noun() != FONT_INHERIT)
+ os << bformat(_("Noun %1$s, "),
+ _(GUIMiscNames[f.noun()]));
+ if (f == inherit_font)
+ os << _("Default") << ", ";