]> git.lyx.org Git - lyx.git/blobdiff - src/MetricsInfo.cpp
Use context-sensitive command termination
[lyx.git] / src / MetricsInfo.cpp
index 3f2b13bc6da5c82dac223779d9372042a539f462..ef9803d8315576ff8dca0b1c84eda0a5cf8bca7e 100644 (file)
@@ -77,6 +77,15 @@ Changer MetricsBase::changeFontSet(string const & name)
 }
 
 
+Changer MetricsBase::changeEnsureMath()
+{
+       // FIXME:
+       //   \textit{\ensuremath{\text{a}}}
+       // should appear in italics
+       return isTextFont(fontname) ? changeFontSet("mathnormal") : Changer();
+}
+
+
 /////////////////////////////////////////////////////////////////////////
 //
 // MetricsInfo