From 45580c8f66b43022645287145385212fcbe8db56 Mon Sep 17 00:00:00 2001 From: Mariia Borowiec Date: Thu, 6 Apr 2017 12:07:56 +0200 Subject: Add handling of the font path Change-Id: Ie6f07d2239cbfb1949ce4b43c55ff43f2f345703 Signed-off-by: Mariia Borowiec --- Xamarin.Forms.Platform.Tizen/FormsApplication.cs | 5 +++++ 1 file changed, 5 insertions(+) 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() -- cgit v1.2.3