UNPKG

966 BTypeScriptView Raw
1import { Font as FontBase } from './font-common';
2import { FontStyleType, FontWeightType, FontVariationSettingsType } from './font-interfaces';
3export { FontStyle, FontWeight, FontVariationSettings, parseFont } from './font-common';
4export declare class Font extends FontBase {
5 static default: Font;
6 constructor(family: string, size: number, style?: FontStyleType, weight?: FontWeightType, scale?: number, variationSettings?: Array<FontVariationSettingsType>);
7 withFontFamily(family: string): Font;
8 withFontStyle(style: FontStyleType): Font;
9 withFontWeight(weight: FontWeightType): Font;
10 withFontSize(size: number): Font;
11 withFontScale(scale: number): Font;
12 withFontVariationSettings(variationSettings: Array<FontVariationSettingsType> | null): Font;
13 getUIFont(defaultFont: UIFont): UIFont;
14 getAndroidTypeface(): android.graphics.Typeface;
15}
16export declare namespace ios {
17 function registerFont(fontFile: string): void;
18}