Custom font Xamarin.Android
Posted: Fri Jan 24, 2014 9:33 am
Hi!
I use Xamarin.Android and Xamarin.iOs.
I need to dispaly chart data with Calibri font.
On iOs when i set g.Font.Name = "Calibri" everything is ok. But on android it does nothing. The font isn't changing.
I tried to load custom font from .ttf file
It works, but on nexus 7 letters look not good. They aren't sharp and look blurred.
How to use calibri font on android?
Need i licence to use calibri, or it is free, either it is licenced by teechart?
I use Xamarin.Android and Xamarin.iOs.
I need to dispaly chart data with Calibri font.
On iOs when i set g.Font.Name = "Calibri" everything is ok. But on android it does nothing. The font isn't changing.
I tried to load custom font from .ttf file
Code: Select all
var textPaint = new TextPaint ();
textPaint.SetTypeface (Singleton.Instance.Calibri);
var chartFont = new ChartFont (textPaint);
g.Font = chartFont;
How to use calibri font on android?
Need i licence to use calibri, or it is free, either it is licenced by teechart?