Files
NativeScript/packages/core/ui/styling/font-interfaces.ts
2023-11-22 08:38:10 -08:00

18 lines
490 B
TypeScript

export type FontStyleType = 'normal' | 'italic';
export type FontWeightType = '100' | '200' | '300' | 'normal' | '400' | '500' | '600' | 'bold' | '700' | '800' | '900' | number;
export interface ParsedFont {
fontStyle?: FontStyleType;
fontVariant?: string;
fontWeight?: FontWeightType;
lineHeight?: string;
fontSize?: string;
fontFamily?: string;
fontVariationSettings?: FontVariationSettingsType[];
}
export type FontVariationSettingsType = {
axis: string;
value: number;
};