Skip to content

fix texture bug, add CJK display and IME#106

Merged
jiegec merged 16 commits into
TermonyHQ:masterfrom
mix-il:sync
Aug 26, 2025
Merged

fix texture bug, add CJK display and IME#106
jiegec merged 16 commits into
TermonyHQ:masterfrom
mix-il:sync

Conversation

@mix-il

@mix-il mix-il commented Aug 22, 2025

Copy link
Copy Markdown
Contributor

之前字体位图只有一列一旦超过8192,就会立即绑定材质失败

现在改成二维图,可以容纳一万多字符,很难再超8192

并添加中文显示支持(标点等仍然排版错误)

screenshot_20250822_194325

@jiegec

jiegec commented Aug 22, 2025

Copy link
Copy Markdown
Member

好酷!标点符号的问题,可以试着找一个中文比英文2:1的等宽字体,这样应该会比较好处理一些。然后 Terminal Emulator 那边需要检测一下宽字符,如果是宽字符就占用两个 cell,第一个 cell 保存那个 char,第二个 cell 不绘制。之前读过 xterm.js 的代码,印象中里面有相关的逻辑。

@jiegec

jiegec commented Aug 26, 2025

Copy link
Copy Markdown
Member

看起来工作量不小,辛苦!做完以后,可以 request 一下 review 来告诉我,我来 review 和合并。

@mix-il mix-il changed the title fix texture bug, add CJK display fix texture bug, add CJK display and IME Aug 26, 2025
@mix-il

mix-il commented Aug 26, 2025

Copy link
Copy Markdown
Contributor Author

可以合了,看起来更改多,都是IDE右键refactor重命名的,实际更改并没有那么多

@jiegec jiegec merged commit 85ff9dd into TermonyHQ:master Aug 26, 2025
2 checks passed
@jiegec

jiegec commented Aug 26, 2025

Copy link
Copy Markdown
Member

@mix-il I invited you to the organization, along with @SwimmingTiger and @SolidFaker who previously contributed nontrivial work to Termony.

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