+double FontInfo::realSize() const
+{
+ double d = convert<double>(lyxrc.font_sizes[size()]);
+ // The following is according to the average of the values in the
+ // definitions of \defaultscriptratio and \defaultscriptscriptratio in LaTeX
+ // font packages. No attempt is made to implement the actual values from
+ // \DefineMathSizes.
+ switch (style()) {
+ case LM_ST_DISPLAY:
+ case LM_ST_TEXT:
+ break;
+ case LM_ST_SCRIPT:
+ d *= .73;
+ break;
+ case LM_ST_SCRIPTSCRIPT:
+ d *= .55;
+ break;
+ }
+ // Never go below the smallest size
+ return max(d, convert<double>(lyxrc.font_sizes[FONT_SIZE_TINY]));
+}
+
+