We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a043ed commit 2ca8ae8Copy full SHA for 2ca8ae8
2 files changed
.changeset/five-rockets-battle.md
@@ -0,0 +1,5 @@
1
+---
2
+"@react-pdf/textkit": patch
3
4
+
5
+fix: cannot read units for Em
packages/textkit/src/engines/fontSubstitution/index.ts
@@ -69,7 +69,7 @@ const fontSubstitution =
69
if (
70
font !== lastFont ||
71
fontSize !== lastFontSize ||
72
- font.unitsPerEm !== lastFont.unitsPerEm
+ font.unitsPerEm !== lastFont?.unitsPerEm
73
) {
74
if (lastFont) {
75
res.push({
0 commit comments