summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariia Borowiec <m.borowiec2@samsung.com>2017-04-06 12:07:56 +0200
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 13:34:36 +0900
commitbec2918ab22d3081c20b0f6a99f8962ab4a4d32e (patch)
tree17015841acd4b37efdd76f6e99d1d519817248ff
parent7cb753fee3bab937b351cd6e4e3bd061f86182ec (diff)
downloadxamarin-forms-bec2918ab22d3081c20b0f6a99f8962ab4a4d32e.tar.gz
xamarin-forms-bec2918ab22d3081c20b0f6a99f8962ab4a4d32e.tar.bz2
xamarin-forms-bec2918ab22d3081c20b0f6a99f8962ab4a4d32e.zip
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 57d14223..471ee758 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()