Repository navigation
fix: 修复歌词图片导出未沿用字体配置的问题 - #408
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Contributor
Author
6 of 12 tasks
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.


改动类型
是否包含破坏性变更
改动说明
歌词图片原先通过 Canvas 使用固定系统字体绘制,即使已配置全局字体或歌词字体,导出图片仍不会采用这些设置。
现在将现有字体配置和歌词语言传入海报生成函数,按「分语言歌词字体 → 歌词字体 → 全局字体 → 系统字体」选择字体;歌名、歌手和水印使用全局字体。翻译和音译根据文本语言选择字体,等待字体加载完成后再测量和绘制,确保换行计算与实际输出使用一致的字体。
沿用现有设置,不新增导出选项。新增回归测试覆盖字体继承、分语言字体、修改字体后的长句换行,以及加载完成前不测量或绘制。
关联 Issue
无
测试情况
src/settings/categories/player.spec.ts自查清单
dev分支提交