mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
cache and use the textclass default font in each LyXText
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7409 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c198343f93
commit
ac74abc03c
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user