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;