mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Css font properties
This commit is contained in:
21
ui/styling/font.d.ts
vendored
Normal file
21
ui/styling/font.d.ts
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
declare module "ui/styling/font" {
|
||||
export class Font {
|
||||
public static default: Font;
|
||||
|
||||
public fontFamily: string;
|
||||
public fontStyle: string;
|
||||
public fontWeight: string;
|
||||
|
||||
public isBold: boolean;
|
||||
public isItalic: boolean;
|
||||
|
||||
public ios: UIFontDescriptor;
|
||||
public android: android.graphics.Typeface;
|
||||
|
||||
constructor(family: string, style: string, weight: string);
|
||||
|
||||
public withFontFamily(family: string): Font;
|
||||
public withFontStyle(style: string): Font;
|
||||
public withFontWeight(weight: string): Font;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user