There was an error while loading. Please reload this page.
1 parent e42a79a commit 4bafab8Copy full SHA for 4bafab8
3 files changed
.changeset/rare-moles-raise.md
@@ -0,0 +1,5 @@
1
+---
2
+"@react-pdf/types": patch
3
4
+
5
+accept string array for `fontFamily` in stylesheets
packages/types/font.d.ts
@@ -20,7 +20,7 @@ export interface FontDescriptor {
20
21
interface FontSource {
22
src: string;
23
- fontFamily: string | string[];
+ fontFamily: string;
24
fontStyle: FontStyle;
25
fontWeight: number;
26
data: any;
packages/types/style.d.ts
@@ -64,7 +64,7 @@ export interface Style {
64
// Text
65
66
fontSize?: number | string;
67
- fontFamily?: string;
+ fontFamily?: string | string[];
68
fontStyle?: string | 'normal';
69
fontWeight?:
70
| number
0 commit comments