Skip to content

Commit a63d11a

Browse files
committed
fix(editor): math equation not being rendered correctly on electron client (#12448)
fix #12300 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved font rendering for math content on Windows by explicitly setting the font for math elements. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 6def1c1 commit a63d11a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/frontend/component/src/theme/global.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,3 +298,11 @@ input {
298298
[contenteditable]:focus-visible {
299299
outline: none;
300300
}
301+
302+
/* Math font may not being loaded in Electron */
303+
math {
304+
font-family:
305+
'Cambria Math' /* windows */,
306+
'STIX Two Math' /* mac */,
307+
math;
308+
}

0 commit comments

Comments
 (0)