labellife-design-tool 2.4.6 → 2.5.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.
package/README.md CHANGED
@@ -265,6 +265,20 @@ dispose(); // Remove listener
265
265
  store.loadFont('Open Sans'); // Load a Google Font by name
266
266
  store.addFont({ fontFamily: 'Custom', url: '...' });
267
267
  store.removeFont('Custom');
268
+
269
+ // Host-managed custom font catalog (e.g. backend-uploaded brand fonts).
270
+ // Call this once after createStore(), before loading/opening a design.
271
+ // `loadFont('Brand Sans')` will then load these files directly instead of
272
+ // querying Google Fonts.
273
+ store.setCustomFonts([
274
+ {
275
+ name: 'Brand Sans',
276
+ variants: [
277
+ { weight: 'normal', style: 'normal', file: 'https://cdn.example.com/brand-sans-regular.woff2' },
278
+ { weight: 'bold', style: 'normal', file: 'https://cdn.example.com/brand-sans-bold.woff2' },
279
+ ],
280
+ },
281
+ ]);
268
282
  ```
269
283
 
270
284
  ---