* Like `this.havingSize(BASESIZE).havingStyle(style)`. If `style` is omitted, * changes to at least `\textstyle`.
(style)
| 4914 | |
| 4915 | |
| 4916 | havingBaseStyle(style) { |
| 4917 | style = style || this.style.text(); |
| 4918 | const wantSize = sizeAtStyle(Options.BASESIZE, style); |
| 4919 | |
| 4920 | if (this.size === wantSize && this.textSize === Options.BASESIZE && this.style === style) { |
| 4921 | return this; |
| 4922 | } else { |
| 4923 | return this.extend({ |
| 4924 | style: style, |
| 4925 | size: wantSize |
| 4926 | }); |
| 4927 | } |
| 4928 | } |
| 4929 | /** |
| 4930 | * Remove the effect of sizing changes such as \Huge. |
| 4931 | * Keep the effect of the current style, such as \scriptstyle. |
no test coverage detected