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

posframe: 候选框高度不正确 #35

Closed
lyserenity opened this issue Mar 20, 2020 · 8 comments
Closed

posframe: 候选框高度不正确 #35

lyserenity opened this issue Mar 20, 2020 · 8 comments

Comments

@lyserenity
Copy link

image
候选的字下半部不见,请问怎么办?谢谢

@DogLooksGood
Copy link
Owner

看起来像是使用了中英文高度不同的字体导致posframe高度计算的错误?

可以尝试使用单行候选

(setq rime-posframe-style 'simple)

或使用等高的字体。

@lyserenity
Copy link
Author

原来如此,我习惯中文字体比英文大一字号,没想到是这原因,感谢

@DogLooksGood
Copy link
Owner

我想知道在你这种情况下,全角空格是不是有和中文一样的高度。
如果是的话,上面第一行的结尾,也许我们可以加一个全角空格。

rime--candidate-prefix-char 函数中的 \n 换成 \n全角空格.
也许能让posframe获得正确的高度。

@lyserenity
Copy link
Author

我不知道怎么判断....
image
这样可以吗?

@DogLooksGood DogLooksGood mentioned this issue Mar 20, 2020
11 tasks
@DogLooksGood
Copy link
Owner

就是原本一行只有英文字符,加入一个全角空格的时候,会把行高拉高吗?

@DogLooksGood DogLooksGood changed the title posframe: 候选显示不完全 posframe: 候选框高度不正确 Mar 20, 2020
@lyserenity
Copy link
Author

2020-03-20 22-42-23 2020-03-20 22_46_07
如果就是 gif 中呈现的样子的话,那应该就是行拉高了(我在 aaaa 后贴上全角空格)

@lyserenity
Copy link
Author

rime-posframe-properties 如果加上 :font 的设定,候选就不会被切掉了

@DogLooksGood
Copy link
Owner

这个只能看用户的设置了,毕竟默认用什么 font 都不合适。

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

2 participants