So far as I can see, font-ital doesn't actually do anything in the current code. This patch fixes that. Any thoughts?

rh

Index: Text3.cpp
===================================================================
--- Text3.cpp	(revision 27700)
+++ Text3.cpp	(working copy)
@@ -1582,6 +1582,13 @@
 		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 @@
 		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;

Reply via email to