Add handling of the font path
authorMariia Borowiec <m.borowiec2@samsung.com>
Thu, 6 Apr 2017 10:07:56 +0000 (12:07 +0200)
committerKangho Hur <kangho.hur@samsung.com>
Mon, 10 Jul 2017 02:11:27 +0000 (11:11 +0900)
Change-Id: Ie6f07d2239cbfb1949ce4b43c55ff43f2f345703
Signed-off-by: Mariia Borowiec <m.borowiec2@samsung.com>
Xamarin.Forms.Platform.Tizen/FormsApplication.cs

index 57d1422..471ee75 100644 (file)
@@ -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()