toScriptStyle method
Style transformation when entering subscripts/superscripts
Implementation
RenderContext toScriptStyle() {
final newStyle = mathStyle.toScript();
return copyWith(
fontSize: fontSize * (newStyle.scaleFactor() / mathStyle.scaleFactor()),
mathStyle: newStyle,
);
}