feat(font): support OpenType feature of vrt2 and vert for vertical replacement of some punctuations (#2764)

This commit is contained in:
Huang Xin
2025-12-23 01:39:09 +08:00
committed by GitHub
parent 7db1bc460d
commit 3a6c18c6d5
+5
View File
@@ -242,6 +242,7 @@ const getLayoutStyles = (
}
html, body {
${writingMode === 'auto' ? '' : `writing-mode: ${writingMode} !important;`}
${vertical ? 'font-feature-settings: "vrt2" 1, "vert" 1; text-orientation: upright;' : ''}
text-align: var(--default-text-align);
max-height: unset;
}
@@ -405,6 +406,10 @@ const getLayoutStyles = (
div.center *, p.center * { text-align: center; }
div.justify *, p.justify * { text-align: justify; }
.br {
display: flow-root;
}
.h5_mainbody {
overflow: unset !important;
}