diff --git a/src/lyxtext.h b/src/lyxtext.h index a0ee412a9a..8bc14f870d 100644 --- a/src/lyxtext.h +++ b/src/lyxtext.h @@ -61,7 +61,7 @@ public: /// the current font LyXFont real_current_font; /// our buffer's default layout font - //LyXFont defaultfont_; + LyXFont defaultfont_; private: /** the 'anchor' row: the position of this row remains constant * with respect to the top of the screen diff --git a/src/text2.C b/src/text2.C index fa968541e5..c5f30869c3 100644 --- a/src/text2.C +++ b/src/text2.C @@ -156,7 +156,7 @@ LyXFont LyXText::getFont(ParagraphList::iterator pit, pos_type pos) const // Realize with the fonts of lesser depth. tmpfont.realize(outerFont(pit, ownerParagraphs())); - //tmpfont.realize(defaultfont_); + tmpfont.realize(defaultfont_); return tmpfont; } @@ -173,7 +173,7 @@ LyXFont LyXText::getLayoutFont(ParagraphList::iterator pit) const LyXFont font = layout->font; // Realize with the fonts of lesser depth. font.realize(outerFont(pit, ownerParagraphs())); - //font.realize(defaultfont_); + font.realize(defaultfont_); return font; } @@ -190,7 +190,7 @@ LyXFont LyXText::getLabelFont(ParagraphList::iterator pit) const LyXFont font = layout->labelfont; // Realize with the fonts of lesser depth. font.realize(outerFont(pit, ownerParagraphs())); - //font.realize(defaultfont_); + font.realize(defaultfont_); return font; } @@ -243,7 +243,7 @@ void LyXText::setCharFont( } } - //layoutfont.realize(defaultfont_); + layoutfont.realize(defaultfont_); // Now, reduce font against full layout font font.reduce(layoutfont);