summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariia Borowiec <m.borowiec2@samsung.com>2017-04-06 10:07:56 (GMT)
committerKangho Hur <kangho.hur@samsung.com>2017-07-10 02:11:27 (GMT)
commit941d34a10a761d3d8514d633a62b8471b9fdefec (patch)
tree9828e29b309849a6ce3cef1fa9f4d3dd6d219845
parente1035023502398228408f70487a47886432d94af (diff)
downloadxamarin-forms-941d34a10a761d3d8514d633a62b8471b9fdefec.zip
xamarin-forms-941d34a10a761d3d8514d633a62b8471b9fdefec.tar.gz
xamarin-forms-941d34a10a761d3d8514d633a62b8471b9fdefec.tar.bz2
Add handling of the font path
Change-Id: Ie6f07d2239cbfb1949ce4b43c55ff43f2f345703 Signed-off-by: Mariia Borowiec <m.borowiec2@samsung.com>
-rw-r--r--Xamarin.Forms.Platform.Tizen/FormsApplication.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/FormsApplication.cs b/Xamarin.Forms.Platform.Tizen/FormsApplication.cs
index 57d1422..471ee75 100644
--- a/Xamarin.Forms.Platform.Tizen/FormsApplication.cs
+++ b/Xamarin.Forms.Platform.Tizen/FormsApplication.cs
@@ -8,6 +8,8 @@ using EButton = ElmSharp.Button;
using EProgressBar = ElmSharp.ProgressBar;
using EColor = ElmSharp.Color;
using ELabel = ElmSharp.Label;
+using TApplication = Tizen.Applications.Application;
+using System.IO;
namespace Xamarin.Forms.Platform.Tizen
{
@@ -48,6 +50,9 @@ namespace Xamarin.Forms.Platform.Tizen
base.OnPreCreate();
Application.ClearCurrent();
CreateWindow();
+
+ var path = Path.Combine(TApplication.Current.DirectoryInfo.Resource, "fonts");
+ Utility.AppendGlobalFontPath(path);
}
protected override void OnTerminate()