@nativescript/core
Version:
A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.
16 lines (15 loc) • 682 B
TypeScript
import { Font as FontBase } from './font-common';
import { FontStyleType, FontWeightType, FontVariationSettingsType } from './font-interfaces';
export * from './font-common';
export declare class Font extends FontBase {
static default: Font;
private _typeface;
withFontFamily(family: string): Font;
withFontStyle(style: FontStyleType): Font;
withFontWeight(weight: FontWeightType): Font;
withFontSize(size: number): Font;
withFontScale(scale: number): Font;
withFontVariationSettings(variationSettings: Array<FontVariationSettingsType> | null): Font;
getAndroidTypeface(): android.graphics.Typeface;
getUIFont(defaultFont: UIFont): UIFont;
}