From 01ab2fd8d008f31309043c7ff341238ea3675a1e Mon Sep 17 00:00:00 2001 From: b5f0d6c3 Date: Sun, 1 May 2022 23:01:55 +0800 Subject: update mkvlib:add get font info --- mkvlib/c/sdk.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mkvlib/c/sdk.cs') diff --git a/mkvlib/c/sdk.cs b/mkvlib/c/sdk.cs index 1958ae1..9b5c165 100644 --- a/mkvlib/c/sdk.cs +++ b/mkvlib/c/sdk.cs @@ -61,6 +61,9 @@ public static class mkvlib [DllImport("mkvlib.so")] static extern bool CopyFontsFromCache(IntPtr subs, IntPtr dist, logCallback lcb); + [DllImport("mkvlib.so")] + static extern IntPtr GetFontInfo(IntPtr p); + #endregion public static bool InitInstance(Action lcb) @@ -154,6 +157,11 @@ public static class mkvlib Check(check, strict); } + public static string GetFontInfo(string p) + { + return css(GetFontInfo(cs(p))); + } + public static string[] CreateFontsCache(string dir, string output, Action lcb) { string result = css(CreateFontsCache(cs(dir), cs(output), _lcb(lcb))); -- cgit v1.2.1