From 3a6c18c6d554b1e8cfc1936aaa5d914995b99c36 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Tue, 23 Dec 2025 01:39:09 +0800 Subject: [PATCH] feat(font): support OpenType feature of vrt2 and vert for vertical replacement of some punctuations (#2764) --- apps/readest-app/src/utils/style.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/readest-app/src/utils/style.ts b/apps/readest-app/src/utils/style.ts index 616eb774..20b783cf 100644 --- a/apps/readest-app/src/utils/style.ts +++ b/apps/readest-app/src/utils/style.ts @@ -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; }