@lvce-editor/editor-worker 19.52.0 → 19.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editorWorkerMain.js +2 -1
- package/package.json +1 -1
package/dist/editorWorkerMain.js
CHANGED
|
@@ -5420,7 +5420,8 @@ const getLanguages = async (platform, assetDir) => {
|
|
|
5420
5420
|
};
|
|
5421
5421
|
|
|
5422
5422
|
const measureCharacterWidth = async (fontWeight, fontSize, fontFamily, letterSpacing) => {
|
|
5423
|
-
|
|
5423
|
+
const width = await measureTextWidth('a', fontWeight, fontSize, fontFamily, letterSpacing, false, 0);
|
|
5424
|
+
return width + letterSpacing;
|
|
5424
5425
|
};
|
|
5425
5426
|
|
|
5426
5427
|
const normalizeLineEndings = content => {
|