import { Case, Scripting } from './TextStyleTypes'; import { ColorUsage, ColorUsageUpdate } from './ColorStyleTypes'; import { Id } from './CommonTypes'; export type CharacterStyle = { id: Id; name: string; fontKey?: string; fontSize?: number; typographicCase?: Case; kerningOn: boolean; subSuperScript?: Scripting; trackingLeft?: number; trackingRight?: number; textIndent?: string; baselineShiftValue?: string; lineHeight?: number; textOverprint?: boolean; color: ColorUsage; strokeColor: ColorUsage; backgroundColor: ColorUsage; fillColorApplied?: boolean | null; strokeColorApplied?: boolean | null; backgroundColorApplied?: boolean | null; strokeWidth?: number; underline: boolean; lineThrough: boolean; }; export type CharacterStyleUpdate = { fontKey?: { value: string; }; fontSize?: { value: number; }; typographicCase?: { value: Case; }; kerningOn?: { value: boolean; }; subSuperScript?: { value: Scripting; }; trackingLeft?: { value: number; }; trackingRight?: { value: number; }; textIndent?: { value: string; }; baselineShiftValue?: { value: string; }; lineHeight?: { value: number; }; textOverprint?: { value: boolean; }; color?: { value: ColorUsageUpdate; }; fillColorApplied?: { value: boolean; }; strokeColor?: { value: ColorUsageUpdate; }; strokeWidth?: { value: string; }; strokeColorApplied?: { value: boolean; }; backgroundColor?: { value: ColorUsageUpdate; }; backgroundColorApplied?: { value: boolean; }; underline?: { value: boolean; }; lineThrough?: { value: boolean; }; };