























cudaText挺好用的,不过存在段落长度超过一定字数时会出现字符重叠的bug,比如以下的文字:
再规定整万年都不润(无论是否能被4000整除),恰好可以再减掉5天,十万年内误差少于1天,完美~但是地球公转速度、自转速度的长期趋势都是减慢的,所以回归年的长度会增加,我没查到十万年会改变多少的数据(很可能非常微小)Is it just a rebranded SynEdit component? What features does it bring to the table. What? What features does it bring to the table. What? What features does it bring to the table. What? What features does it bring to the table. What? What features does it bring to the table. What? What features does it bring to the table. What? What features does it bring to the table. What? What features21
在cudatext会出现叠字:

反馈给作者得知:
这是因为ATSynEdit-master/atsynedit/ATStringProc.pas的cMaxFixedArray= 1024;限制,对于更长的长度,程序不会计算每行中每个字符的宽度,而是将所有CJK字符以正常宽度(100%)绘制引起的。
const //must be >= OptMaxLineLenForAccurateCharWidths cMaxFixedArray = 1024;
解决办法:
适当增加cMaxFixedArray这个常量的值就可以。
我将cMaxFixedArray的值增加到2048,如果你遇到段落长度超过2048个字符时,可以适当修改这个值就可以。
const //must be >= ATEditorOptions.MaxLineLenForAccurateCharWidths cMaxFixedArray = 2048;
修改后重新编译cudatext就能解决这个问题:

此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。