mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
31 lines
960 B
TypeScript
31 lines
960 B
TypeScript
declare module "ui/styling/font" {
|
|
export class Font {
|
|
public static default: Font;
|
|
|
|
public fontFamily: string;
|
|
public fontStyle: string;
|
|
public fontWeight: string;
|
|
public fontSize: number;
|
|
|
|
public isBold: boolean;
|
|
public isItalic: boolean;
|
|
|
|
constructor(family: string, size: number, style: string, weight: string);
|
|
|
|
public getAndroidTypeface(): any /* android.graphics.Typeface */;
|
|
public getUIFont(defaultFont: any /* UIFont */): any /* UIFont */;
|
|
|
|
public withFontFamily(family: string): Font;
|
|
public withFontStyle(style: string): Font;
|
|
public withFontWeight(weight: string): Font;
|
|
public withFontSize(size: number): Font;
|
|
|
|
public static equals(value1: Font, value2: Font): boolean;
|
|
public static parse(cssValue: string): Font;
|
|
}
|
|
|
|
export module ios {
|
|
export function registerFont(fontFile: string);
|
|
}
|
|
}
|