From a1ad412bc6e79c1232c6e37a3635eb53bc30a3e3 Mon Sep 17 00:00:00 2001 From: Manuel Meister Date: Thu, 11 Jun 2026 12:12:44 +0200 Subject: [PATCH] Fix types for textkit --- packages/textkit/src/types.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/textkit/src/types.ts b/packages/textkit/src/types.ts index fe5012f50..818bd7508 100644 --- a/packages/textkit/src/types.ts +++ b/packages/textkit/src/types.ts @@ -1,6 +1,6 @@ +import type { Glyph as FontkitGlyph } from 'fontkit'; import type { Font } from '@react-pdf/font'; import type { FontFeatureSettings } from '@react-pdf/stylesheet'; -import type { Glyph as FontkitGlyph } from 'fontkit'; import { Factor as JustificationFactor } from './engines/justification/types'; export type Coordinate = { @@ -51,11 +51,12 @@ export type Attributes = { bullet?: unknown; characterSpacing?: number; color?: string; - direction?: FontFeatureSettings; + direction?: 'rtl' | 'ltr'; features?: unknown[]; fill?: boolean; font?: Font[]; fontSize?: number; + fontFeatureSettings?: FontFeatureSettings; hangingPunctuation?: boolean; hyphenationFactor?: number; indent?: number;