mirror of
https://github.com/imsyy/SPlayer.git
synced 2026-04-25 06:55:57 +03:00
[PR #484] [MERGED] feat: 支持为日语单独设置字体 #477
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/imsyy/SPlayer/pull/484
Author: @MoYingJi
Created: 10/9/2025
Status: ✅ Merged
Merged: 10/13/2025
Merged by: @imsyy
Base:
dev← Head:feat📝 Commits (6)
60f7517日文字形设置和 MainLyric 的基础支持554cf45fix52e8458fix86f33d0日语单独字体 AM 支持6158dd2Merge branch 'imsyy:dev' into feat89117d4规范代码📊 Changes
5 files changed (+75 additions, -3 deletions)
View changed files
📝
src/components/Player/MainAMLyric.vue(+28 -0)📝
src/components/Player/MainLyric.vue(+8 -3)📝
src/components/Setting/GeneralSetting.vue(+27 -0)📝
src/stores/setting.ts(+2 -0)📝
src/utils/lyric.ts(+10 -0)📄 Description
原因是:在日本标准中某些汉字的字形与中国标准并不一致,单独设置字体以获得更好的体验
更改
lyric.ts下新增函数getLyricLanguage用于简单的获取歌词语言,将原MainLyric.vue中歌词的lang属性改为这个函数获取MainLyric.vue和MainAMLyric.vue都增加了当lang=ja时使用特定字体的 cssMainAMLyric.vue的歌词也使用getLyricLanguage设置了lang属性缺点
目前
getLyricLanguage比较简陋,是根据这行歌词是否含有日语假名进行的判断,对一整行都没有假名的全汉字歌词没法判断🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.