Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

高度較高的字體配上底色控制碼會切到相鄰行文字 #42

Open
wdhongtw opened this issue Sep 8, 2018 · 0 comments
Open

Comments

@wdhongtw
Copy link

wdhongtw commented Sep 8, 2018

使用某些高度較高的字體,如 Noto Sans Mono CJK TC ,並且當
文字有使用控制碼調整底色時,會發生底色的色塊切到上行文字的狀況。
如下圖所示

broken

經觀察,若將 XPath: /html/body/div[2]/div[2] (css class: .main) 內的
line-height 設定調為 normal,則可以避免切字的狀況
如下圖所示

normal

但此作法會造成 24 行無法全部顯示 (約可顯示 16 行),以及浮標閃爍位置異常等問題。
不確定是否有更好的解法。

Noto Sans Mono CJK TC 是個優秀的字體,若扣除切字問題,用於 BBS 的顯示效果也非常好。
期望能有方法支援這類行高較高的字體。 😸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant