* Remove the effect of sizing changes such as \Huge. * Keep the effect of the current style, such as \scriptstyle.
()
| 4933 | |
| 4934 | |
| 4935 | havingBaseSizing() { |
| 4936 | let size; |
| 4937 | |
| 4938 | switch (this.style.id) { |
| 4939 | case 4: |
| 4940 | case 5: |
| 4941 | size = 3; // normalsize in scriptstyle |
| 4942 | |
| 4943 | break; |
| 4944 | |
| 4945 | case 6: |
| 4946 | case 7: |
| 4947 | size = 1; // normalsize in scriptscriptstyle |
| 4948 | |
| 4949 | break; |
| 4950 | |
| 4951 | default: |
| 4952 | size = 6; |
| 4953 | // normalsize in textstyle or displaystyle |
| 4954 | } |
| 4955 | |
| 4956 | return this.extend({ |
| 4957 | style: this.style.text(), |
| 4958 | size: size |
| 4959 | }); |
| 4960 | } |
| 4961 | /** |
| 4962 | * Create a new options object with the given color. |
| 4963 | */ |
no test coverage detected