Skip to content

[0101] 修复 Latin Modern Math 数学模式下希腊字母斜体问题#3316

Merged
da-liii merged 4 commits into
mainfrom
da/0101/italic
May 12, 2026
Merged

[0101] 修复 Latin Modern Math 数学模式下希腊字母斜体问题#3316
da-liii merged 4 commits into
mainfrom
da/0101/italic

Conversation

@da-liii

@da-liii da-liii commented May 12, 2026

Copy link
Copy Markdown
Contributor

摘要

修复 Latin Modern Math 字体在数学模式下希腊字母显示为正体而非斜体的问题。

改动内容

  1. src/Graphics/Fonts/smart_font.cpp: 在 resolve 函数中,当主字体支持原始希腊字符时,增加斜体希腊字母优先逻辑。
  2. tests/Graphics/Fonts/smart_font_test.cpp: 新增 test_latin_modern_math_italic_greek 单元测试。
  3. devel/0101.md: 新增开发文档。

测试

xmake b smart_font_test
xmake r smart_font_test

@da-liii da-liii marked this pull request as draft May 12, 2026 01:44
da-liii and others added 3 commits May 12, 2026 17:27
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@da-liii da-liii marked this pull request as ready for review May 12, 2026 11:05
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

@JackYansongLi JackYansongLi left a comment

Copy link
Copy Markdown
Contributor

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 712998f into main May 12, 2026
5 checks passed
@da-liii da-liii deleted the da/0101/italic branch May 12, 2026 12:01
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