mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
Add custom fonts test page
This commit is contained in:
13
apps/ui-tests-app/font/custom-fonts.xml
Normal file
13
apps/ui-tests-app/font/custom-fonts.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<Page>
|
||||
<StackLayout>
|
||||
<Button text="Button" style="font-family: Sofia" />
|
||||
<Label text="Label" style="font-family: Sofia" />
|
||||
<TextField text="TextField" style="font-family: Sofia" />
|
||||
<TextView text="TextView" style="font-family: Sofia" />
|
||||
|
||||
<Button text="Button" style="font-family: Pacifico" />
|
||||
<Label text="Label" style="font-family: Pacifico" />
|
||||
<TextField text="TextField" style="font-family: Pacifico" />
|
||||
<TextView text="TextView" style="font-family: Pacifico" />
|
||||
</StackLayout>
|
||||
</Page>
|
BIN
apps/ui-tests-app/fonts/Pacifico.ttf
Normal file
BIN
apps/ui-tests-app/fonts/Pacifico.ttf
Normal file
Binary file not shown.
BIN
apps/ui-tests-app/fonts/Sofia.otf
Normal file
BIN
apps/ui-tests-app/fonts/Sofia.otf
Normal file
Binary file not shown.
@ -55,11 +55,13 @@ examples.set("dialogs", "dialogs/dialogs");
|
||||
|
||||
examples.set("fontbtn", "font/button");
|
||||
examples.set("fontlbl", "font/label");
|
||||
examples.set("material", "font/material-icons");
|
||||
examples.set("tabfont", "font/tab-view");
|
||||
examples.set("fontfield", "font/text-field");
|
||||
examples.set("fontview", "font/text-view");
|
||||
|
||||
examples.set("customfonts", "font/custom-fonts");
|
||||
examples.set("material", "font/material-icons");
|
||||
examples.set("tabfont", "font/tab-view");
|
||||
|
||||
examples.set("htmlview", "html-view/html-view");
|
||||
|
||||
examples.set("roundbtn", "image-view/rounded-buttons");
|
||||
|
Reference in New Issue
Block a user