Comparing version 1.0.6 to 1.0.7
@@ -193,6 +193,6 @@ /*! | ||
// 这里假设引号永远是在 em 格左侧的。fix 指修复一些并非在左侧时的情况。 | ||
let quoteFix = 0; | ||
quoteFix += ((!lastIsPunctuation && character === '“') ? charFontSize / 2 : 0); | ||
if (fixLeftQuote) { | ||
quoteFix += ((!lastIsPunctuation && character === '“') ? charFontSize / 2 : 0); | ||
// 一些平台上引号量取结果是<0.5em宽,但绘制时却是1em宽,导致错位。下面的代码修正这一问题 | ||
@@ -199,0 +199,0 @@ // OS X 无需此修复(FLAG_STDWIDTH === true) |
{ | ||
"name": "huozi", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "A simple typography engine for CJK languages, especially designed for game rich-text.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
192394
461