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

建议夹注使用凸排后,重新计算夹注的长度,或者在排夹注时不要使用凸排 #10

Open
walkthetalk opened this issue May 2, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@walkthetalk
Copy link

walkthetalk commented May 2, 2024

两行夹注不一样长,看起来不太美观,尤其是没有占满整行的情况下,如果能对齐上下两行比较好。
另外由于凸排的存在,夹注所占空间的长度可能会小于显示字符真正所需,导致与后续字符重叠。

jiazhutupai

tupai

@Fusyong Fusyong added the bug Something isn't working label May 2, 2024
@walkthetalk
Copy link
Author

重叠的问题 由 clear_glues 引起,没有正确的删除尾部的相关节点,修改如下:

-- 处理尾部的不可见结点
n = node_tail(n)
while n and not is_visible_node(n) do
    if n.id == glue_id and to_remove_glues[n.subtype] then
        width_dropdown = width_dropdown + n.width
        n = n.prev
        l.head, _ = node_remove(l.head, n.next, true)
    else
        n = n.prev
    end
end

@Fusyong
Copy link
Owner

Fusyong commented May 3, 2024

真是一个大马虎~
按你的方案改后看样子解决了很多奇怪问题
95e240d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants