Skip to content

[0157] 修复automatic渲染模式下文字缺失问题#3472

Merged
da-liii merged 2 commits into
mainfrom
xjl12/0157
May 23, 2026
Merged

[0157] 修复automatic渲染模式下文字缺失问题#3472
da-liii merged 2 commits into
mainfrom
xjl12/0157

Conversation

@xjl12
Copy link
Copy Markdown
Contributor

@xjl12 xjl12 commented May 23, 2026

测试

由于[0154](4adba9aa6859a881fbbf5111fe1d4ff2763bb419)已从图形界面移除屏幕渲染项,需开启“调试”菜单项,执行schema命令切换。

  1. 编译并运行程序,任意打开一个有文字的文档
  2. 调试->运行->执行schema表达式->(init-page-rendering "automatic")
  3. 将光标置于英文单词中间,观察光标消失时字体渲染是否完整。

原因

PDF相关渲染器要求BT、ET操作配对,才能完成文字写入

光标闪烁的渲染器调用序列为:

  1. 清空光标所在矩形区域
  2. 重绘光标所在文本区域的文字(BT操作)
  3. 调用edit_interface_rep::draw_surround()函数处理页面周围
    • 非automatic时,会调用clear,间接产生ET操作
    • automatic直接return,无ET操作,文字序列停留缓冲区,未渲染

Copy link
Copy Markdown
Contributor

@da-liii da-liii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@da-liii da-liii merged commit a912423 into main May 23, 2026
4 checks passed
@da-liii da-liii deleted the xjl12/0157 branch May 23, 2026 07:13
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 this pull request may close these issues.

2 participants