mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
FontAwesome will now work in iOS buttons, being bold will fallback to Helvetica
This commit is contained in:
@@ -8,38 +8,38 @@
|
||||
<Label text="" class="font-awesome" fontFamily="FontAwesome" fontSize="42em" />
|
||||
<Button text="TAP" tap="onTap">
|
||||
<FormattedString>
|
||||
<Span text="" class="font-awesome" fontFamily="FontAwesome" fontSize="42em" foregroundColor="white" fontAttributes="Bold"></Span>
|
||||
<Span text="font-awesome" fontAttributes="Bold"></Span>
|
||||
<Span text="" class="font-awesome" fontFamily="FontAwesome" fontSize="42em" color="white"></Span>
|
||||
<Span text="font-awesome" fontWeight="bold"></Span>
|
||||
</FormattedString>
|
||||
</Button>
|
||||
<Button text="TAP" tap="onTap" class="">
|
||||
<FormattedString>
|
||||
<Span text="" fontFamily="FontAwesome" fontSize="42em" foregroundColor="white" fontAttributes="Bold"></Span>
|
||||
<Span text="some text" fontAttributes="Bold"></Span>
|
||||
<Span text="" fontFamily="FontAwesome" fontSize="42em" color="white"></Span>
|
||||
<Span text="some text" fontWeight="bold"></Span>
|
||||
</FormattedString>
|
||||
</Button>
|
||||
<Button text="TAP" tap="onTap" class="">
|
||||
<FormattedString>
|
||||
<Span text="" fontFamily="FontAwesome" fontSize="42em" foregroundColor="white" fontAttributes="Bold"></Span>
|
||||
<Span text="some text" fontAttributes="Bold"></Span>
|
||||
<Span text="" fontFamily="FontAwesome" fontSize="42em" color="white"></Span>
|
||||
<Span text="some text" fontWeight="bold"></Span>
|
||||
</FormattedString>
|
||||
</Button>
|
||||
<Button text="TAP" tap="onTap" class="">
|
||||
<FormattedString>
|
||||
<Span text="" fontFamily="FontAwesome" fontSize="42em" foregroundColor="white" fontAttributes="Bold"></Span>
|
||||
<Span text="some text" fontAttributes="Bold"></Span>
|
||||
<Span text="" fontFamily="FontAwesome" fontSize="42em" color="white"></Span>
|
||||
<Span text="some text" fontWeight="bold"></Span>
|
||||
</FormattedString>
|
||||
</Button>
|
||||
<Button text="TAP" tap="onTap" class="">
|
||||
<FormattedString>
|
||||
<Span text="" fontFamily="FontAwesome" fontSize="42em" foregroundColor="white" fontAttributes="Bold"></Span>
|
||||
<Span text="some text" fontAttributes="Bold"></Span>
|
||||
<Span text="" fontFamily="FontAwesome" fontSize="42em" color="white"></Span>
|
||||
<Span text="some text" fontWeight="bold"></Span>
|
||||
</FormattedString>
|
||||
</Button>
|
||||
<Button text="TAP" tap="onTap" class="">
|
||||
<FormattedString>
|
||||
<Span text="" fontFamily="FontAwesome" fontSize="42em" foregroundColor="white" fontAttributes="Bold"></Span>
|
||||
<Span text="some text" fontAttributes="Bold"></Span>
|
||||
<Span text="" fontFamily="FontAwesome" fontSize="42em" color="white"></Span>
|
||||
<Span text="some text" fontWeight="bold"></Span>
|
||||
</FormattedString>
|
||||
</Button>
|
||||
<Label text="{{ message }}" class="h2 text-center" textWrap="true"/>
|
||||
|
||||
Reference in New Issue
Block a user