diff --git a/src/Text3.cpp b/src/Text3.cpp index 8a181f80c0..ee7865cfa8 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -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;