mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
Make LFUN_FONT_ITAL actually do something.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27712 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
077baded5c
commit
9a67491a3f
@ -1582,6 +1582,13 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
||||
break;
|
||||
}
|
||||
|
||||
case LFUN_FONT_ITAL: {
|
||||
Font font(ignore_font, ignore_language);
|
||||
font.fontInfo().setShape(ITALIC_SHAPE);
|
||||
toggleAndShow(cur, this, font);
|
||||
break;
|
||||
}
|
||||
|
||||
case LFUN_FONT_BOLD:
|
||||
case LFUN_FONT_BOLDSYMBOL: {
|
||||
Font font(ignore_font, ignore_language);
|
||||
@ -2104,6 +2111,10 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
flag.setOnOff(fontinfo.emph() == FONT_ON);
|
||||
break;
|
||||
|
||||
case LFUN_FONT_ITAL:
|
||||
flag.setOnOff(fontinfo.shape() == ITALIC_SHAPE);
|
||||
break;
|
||||
|
||||
case LFUN_FONT_NOUN:
|
||||
flag.setOnOff(fontinfo.noun() == FONT_ON);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user