James Montemagno
James Montemagno

Live, Love, Bike, and Code.

Tags


James Montemagno

Fonts

Xamarin.Forms Custom Fonts Simplified & Everywhere

It was just about 1 year ago when I wrote about using font icons for images [https://montemagno.com/using-font-icons-in-xamarin-forms-goodbye-images-hello-fonts/] inside of Xamarin.Forms apps. Well time has flown by and now more than ever is the time to go all in on custom fonts and font icons because with Xamarin.Forms 4.6 everything got so much easier! Custom fonts in Xamarin.Forms ShellSee my full walkthrough: So, let's start off with the basics when it comes to fonts. You usually thin…

James Montemagno James Montemagno

Using Font Icons in Xamarin.Forms: Goodbye Images, Hello Fonts!

Updated: See the newest way of importing fonts with Xamarin.Forms 4.6 on my latest blog post [https://montemagno.com/xamarin-forms-custom-fonts-everywhere/]. My full walkthrough: My entire mobile development career I have gone all in on using device specific images and icons. These are properly scaled and sized images that fit @1x, @2x, @3x, hdpi, xhdpi, xxhdi, and so on, which are great because they are super optimized for each platform. The reason I do this was because it gives very consist…

James Montemagno James Montemagno

Beautiful Android Compat Roboto Fonts in Xamarin.Android

In android 4.1 and 4.2 Google did something amazing, which was add the roboto [http://developer.android.com/design/style/typography.html] fonts as a default font family that you can switch between. It is as easy as setting “sans-serif”, “sans-serif-light”, “sans-serif-condensed”, and “sans-serif-thin” as the android:FontFamily. However the obvious issue here is that this is only available in 4.1+ (with thin only being available in 4.2). So if you want to target older platforms you have to do s…

James Montemagno James Montemagno