forked from akai/readest
feat(font): support OpenType feature of vrt2 and vert for vertical replacement of some punctuations (#2764)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user