[Elmsharp] Add fontconfig reinit method (#2145)
authorshmin <shyun.min@samsung.com>
Sun, 1 Nov 2020 21:59:48 +0000 (06:59 +0900)
committerGitHub <noreply@github.com>
Sun, 1 Nov 2020 21:59:48 +0000 (06:59 +0900)
Co-authored-by: Kangho Hur <rookiejava@gmail.com>
src/ElmSharp/ElmSharp/Utility.cs
src/ElmSharp/Interop/Interop.Evas.cs

index 4884f47..1223207 100644 (file)
@@ -52,6 +52,15 @@ namespace ElmSharp
         }
 
         /// <summary>
+        /// Reinitialize FontConfig.
+        /// </summary>
+        /// <since_tizen> preview </since_tizen>
+        public static void FontReinit()
+        {
+            Interop.Evas.evas_font_reinit();
+        }
+
+        /// <summary>
         /// Sets the Edje color class.
         /// </summary>
         /// <param name="colorClass">Color class.</param>
index e0357c2..4851a1c 100644 (file)
@@ -638,6 +638,9 @@ internal static partial class Interop
         internal static extern void evas_font_path_global_prepend(string path);
 
         [DllImport(Libraries.Evas)]
+        internal static extern void evas_font_reinit();
+
+        [DllImport(Libraries.Evas)]
         internal static extern void evas_color_argb_unpremul(int a, ref int r, ref int g, ref int b);
 
         [DllImport(Libraries.Evas)]