summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariia Borowiec <m.borowiec2@samsung.com>2017-04-06 12:07:56 +0200
committerMariia Borowiec <m.borowiec2@samsung.com>2017-06-20 12:04:07 +0200
commit45580c8f66b43022645287145385212fcbe8db56 (patch)
treea390d92cee8940ef0cc1a08003b9be4c6d921053
parente2f6fbc334e7b47c11d24675aa43641f8859488c (diff)
downloadxamarin-forms-45580c8f66b43022645287145385212fcbe8db56.tar.gz
xamarin-forms-45580c8f66b43022645287145385212fcbe8db56.tar.bz2
xamarin-forms-45580c8f66b43022645287145385212fcbe8db56.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()