I'm a beginner in Xamarin and xml. I know a some C#. I'm trying to set the font of my Xamarin Forms application on the android version specifically, that way I can get a monospace font (Droid Sans Mono). I've looked around at a lot of threads about fonts and OnPlatform and data bindings, but I'm a little bit lost. I'm pretty sure
Font.FontFamily is read-only as well.
here are some examples of things I have tried:
Label1.FontFamily = Device.OnPlatform("MarkerFelt-Thin", "Droid Sans Mono", "Comic Sans MS");
<Label x:Name="Label1" Text="" HorizontalOptions="Center" VerticalOptions="CenterAndExpand"> <Label.FontFamily> <OnPlatform x:TypeArguments="String"> <On Platform="Android">Droid Sans Mono</On> </OnPlatform> </Label.FontFamily> </Label>