Repository navigation
feat: 延续 #95,按主字体适配希腊数学字形 - #96
Merged
Merged
Conversation
背景:#95 手绘了 Ω 与 μ,课程与电路公式中的其他希腊字形仍可能借用印刷体。 解决手段:统一主字体、单位别名和采样笔绘的选择,为课程样例和成对变体补绘缺字,按精调键重放旧布局。 收益:已有手写字形得到保留,缺字公式的笔迹更一致,旧稿的字框与局部调整可以重放。
Reviewer's GuideImplementation新增希腊字形来源选择与笔绘路径:优先使用主字体可见字形及单位别名,按字体指纹对李国夫字形作例外处理,并为缺字补绘常用希腊字母及变体。
引入 Fine6 作为新布局版本,并由渲染器按文档版本配置字形策略,使 Fine2–Fine5 的精调稿继续按历史字形规则重放。
Documentation更新变更日志和字形画廊示例,说明新字形策略并展示新增希腊字母、变体及内置字体。
Tests覆盖 Fine5 精调稿的像素级重放,并检查 Fine4 精调稿仍保留原生字体希腊字形几何。
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
SXP-Simon
marked this pull request as ready for review
December 1, 2026 21:15
|
Sorry @SXP-Simon, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 5 days and 12 hours by commenting |
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.
问题与变更
延续 #95。九款内置字体里,同一个符号可能有三种情况:主字体自带合适的字形、缺少字形而借用其他字体,或者像随包李国夫手写体那样,自带的希腊字形明显偏印刷体。#95 为所有字体手绘 Ω 和 μ,改善了缺字时的表现,也覆盖了霞鹜文楷等字体已有的字形。
验证
cargo fmt --all -- --check和cargo clippy --locked --workspace --all-targets -- -D warnings。cargo test --locked --workspace已通过,289 项通过,0 项失败,1 项按仓库设置忽略。1881df06独立生成含局部精调的kΩμF页面。回归测试比对重开后的字框、基线与整页原始 RGBA,覆盖 μ 的移动、缩放、旋转与透明度调整。引擎渲染对照
Windows 上用 #95 与本次引擎分别生成。每款字体的上行为 #95,下行为本次,输入、字号、种子与纸张设置相同。云烟体和李国夫的单位一列保留原来的笔形,霞鹜文楷的单位恢复为字体自带字形。点开原图可逐个查看符号。
检查项
CHANGELOG.md的「未发布」。