@paragraf/font-engine 0.7.0 → 0.7.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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -18,8 +18,8 @@ import { createMeasurer } from '@paragraf/font-engine';
18
18
  import { FontRegistry } from '@paragraf/types';
19
19
 
20
20
  const registry: FontRegistry = new Map([
21
- ['regular', { id: 'regular', face: 'SourceSerif4', filePath: './fonts/SourceSerif4-Regular.ttf' }],
22
- ['bold', { id: 'bold', face: 'SourceSerif4', filePath: './fonts/SourceSerif4-Bold.ttf' }],
21
+ ['regular', { id: 'regular', family: 'SourceSerif4', filePath: './fonts/SourceSerif4-Regular.ttf' }],
22
+ ['bold', { id: 'bold', family: 'SourceSerif4', filePath: './fonts/SourceSerif4-Bold.ttf' }],
23
23
  ]);
24
24
 
25
25
  const measurer = createMeasurer(registry);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paragraf/font-engine",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Font metrics abstraction, fontkit adapter, and measurer factory for the paragraf typesetter.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -49,7 +49,7 @@
49
49
  "postpack": "node ../scripts/publishconfig-swap.mjs restore"
50
50
  },
51
51
  "dependencies": {
52
- "@paragraf/types": "^0.7.0",
52
+ "@paragraf/types": "^0.7.1",
53
53
  "fontkit": "^2.0.4"
54
54
  },
55
55
  "devDependencies": {