Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Using Roboto Condensed on iOS through Xamarin Forms

$
0
0

I'm trying to use two different Roboto Condensed fonts (excuse the lay man terms) in a Xamarin Forms app.

The fonts are two different ttf-files
* RobotoCondensed-Bold.ttf
* RobotoCondensed-Regular.ttf

I followed the instructions in Mikes post (https://blog.xamarin.com/custom-fonts-in-ios/)
* Added the fonts to the Resource folder
* Marked as BundledResource
* Copy always
* Added to plist.info

If I open up the fonts in windows to find out the name to use, they are both named just Roboto Condensed.

So how do I reference the fonts from Xamarin Forms when the name is the same?

Tried

<Label FontFamily="Roboto Condensed" Text="Test" />
<Label FontFamily="Roboto Condensed" FontAttributes="Bold" Text="Test" />
<Label FontFamily="Roboto Condensed Bold" Text="Test" />
<Label FontFamily="Roboto Condensed Regular" Text="Test" />

Any hints would be great!

Thanks

Johan


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>