Commit 48a74f9
authored
fix(math): set displaystyle and Cambria Math font on MathML output (SD-2404) (#2622)
Set displaystyle=true only on display math (m:oMathPara) per ECMA-376
spec — inline math uses cramped mode with smaller fractions and limits as
subscripts. Set display=block for m:oMathPara. Use Cambria Math as
preferred math font to match Word rendering.1 parent a5ba5f6 commit 48a74f9
2 files changed
Lines changed: 10 additions & 0 deletions
File tree
- packages/layout-engine/painters/dom/src/features/math
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| 99 | + | |
| 100 | + | |
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
160 | 166 | | |
161 | 167 | | |
162 | 168 | | |
| |||
0 commit comments