[1166] 文本模式字符的逻辑/物理字体解析集成测试(0-255) - #4178
Open
da-liii wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
physical-font-for-stringscheme bridge:edit_typeset_rep::physical_font_for_string复用print_snippet的临时文档排版路径(new_document+typeset_as_box),下钻到 TEXT_BOX 叶子后经新增的font_rep::get_subfont虚函数(smart_font_rep用advance按字符解析子字体)得到物理字体res_name;无字体覆盖的字符落到 error 字体(error-前缀),可据此识别不可渲染字符。TeXmacs/tests/1166.scm(xmake r 1166):钉死文本模式下码位 0–255 的逻辑字体(roman rm medium right)与物理字体解析契约——200 码位 →ec:ecrm10@600,55 码位 →unicode:cmunrm10@600(128–160 及部分 Latin-1 符号),181 (µ) →gr:grmn1000@600;三类字体均随仓库分发,跨机器稳定。码位区间以font-test-segments参数化,后续可逐步扩大 Unicode 覆盖范围。Test plan
xmake r 1166(headless):262 correct, 0 failedMOGAN_TEST_GUI=1 xmake r 1166(真实 GUI):262 correct, 0 failed🤖 Generated with Claude Code