@webround/editor 0.3.0 → 0.3.1

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.
@@ -187,6 +187,8 @@ function setCustomFont(root, family, faces) {
187
187
  rule.append({ prop: 'font-style', value: face.style });
188
188
  if (face.stretch)
189
189
  rule.append({ prop: 'font-stretch', value: face.stretch });
190
+ // The text shows at once in a fallback and changes when the font arrives (without it, it stays invisible until the file is there)
191
+ rule.append({ prop: 'font-display', value: 'swap' });
190
192
  root.append(rule);
191
193
  }
192
194
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webround/editor",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",