1 | import { Font as FontBase } from './font-common';
|
2 | import { FontStyleType, FontWeightType, FontVariationSettingsType } from './font-interfaces';
|
3 | export { FontStyle, FontWeight, FontVariationSettings, parseFont } from './font-common';
|
4 | export 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 | }
|
16 | export declare namespace ios {
|
17 | function registerFont(fontFile: string): void;
|
18 | }
|