refactor: 移除微信端字体权重特殊处理
This commit is contained in:
@@ -2463,10 +2463,6 @@
|
|||||||
// 数值转换为关键字
|
// 数值转换为关键字
|
||||||
if (fontWeight === '400' || fontWeight === 'normal') fontWeight = 'normal';
|
if (fontWeight === '400' || fontWeight === 'normal') fontWeight = 'normal';
|
||||||
else if (fontWeight === '700' || fontWeight === 'bold') fontWeight = 'bold';
|
else if (fontWeight === '700' || fontWeight === 'bold') fontWeight = 'bold';
|
||||||
// 微信中:使用更粗的字体权重以获得更好的可读性
|
|
||||||
if (isWechat() && fontWeight === 'normal') {
|
|
||||||
fontWeight = '500';
|
|
||||||
}
|
|
||||||
|
|
||||||
// 获取斜体样式
|
// 获取斜体样式
|
||||||
let fontStyle = style.fontStyle;
|
let fontStyle = style.fontStyle;
|
||||||
|
|||||||
Reference in New Issue
Block a user