修复字体设置某些字体无法应用的问题

This commit is contained in:
lyswhut
2023-07-04 19:47:19 +08:00
parent a11d123815
commit 816caa6415
4 changed files with 4 additions and 28 deletions
@@ -34,7 +34,7 @@ export default {
return name
})
const lrcStyles = computed(() => ({
fontFamily: setting['desktopLyric.style.font'],
fontFamily: /\s/.test(setting['desktopLyric.style.font']) ? `"${setting['desktopLyric.style.font']}"` : setting['desktopLyric.style.font'],
fontSize: Math.trunc(setting['desktopLyric.style.fontSize']) + 'px',
opacity: setting['desktopLyric.style.opacity'] / 100,
textAlign: setting['desktopLyric.style.align'],
@@ -33,7 +33,7 @@ export default {
return name
})
const lrcStyles = computed(() => ({
fontFamily: setting['desktopLyric.style.font'],
fontFamily: /\s/.test(setting['desktopLyric.style.font']) ? `"${setting['desktopLyric.style.font']}"` : setting['desktopLyric.style.font'],
fontSize: Math.trunc(setting['desktopLyric.style.fontSize']) + 'px',
opacity: setting['desktopLyric.style.opacity'] / 100,
textAlign: setting['desktopLyric.style.align'],