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

有表情和没表情的高度不一致 #866

Closed
daomiren opened this issue Apr 27, 2023 · 4 comments · Fixed by #1177
Closed

有表情和没表情的高度不一致 #866

daomiren opened this issue Apr 27, 2023 · 4 comments · Fixed by #1177

Comments

@daomiren
Copy link

有表情的时候显示的高度比没有的时候高,而且表情的位置感觉跟文字显示的不一致,表情更靠下一些,文字则显示居中点,是因为表情基于opencc转换的缘故吗?
Snipaste_2023-04-27_20-01-28
Snipaste_2023-04-27_19-59-16
Snipaste_2023-04-27_19-59-45

@fxliang
Copy link
Contributor

fxliang commented Apr 28, 2023

这个是不同字体的基线位置不一样引起的,解决思路可以是更换字体组合,或者魔改字体调整基线位置

@letianpai-lpt
Copy link

是的,例如我之前用的霞鹭文楷等宽也出现了这个问题,改成霞鹭文楷后就正常了

@byzod
Copy link

byzod commented Mar 18, 2024

+1

难受, 打几个字候, 选框就跟楼上在开拖拉机似的抖动

我看好像有解决方案a, 是小狼毫这边实现不一样吗

rime/squirrel@54d872b

@byzod
Copy link

byzod commented Mar 19, 2024

通过hack字体高度暂时解决勒(一部分

发现不管怎么弄配置,还是没法完全一致,明明master属性已经一模一样了

猜测rime根据字体轮廓判断了尺寸,但并没有关注base line/ascender之类的设置,所以最后还是看字体的实际大小

不过目前跳得没那么厉害了,先将就着吧,希望早日修复

默认的Segeo print + 微软雅黑,迷人的原始舞蹈.jpg
An1

修改过的segeo print ft msyh,羞涩的交际舞.gif
An2

基线设置:
3

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

Successfully merging a pull request may close this issue.

4 participants