コード例 #1
0
        public void SetFontFunctions(FontFunctions fontFunctions, object fontData, ReleaseDelegate destroy)
        {
            _ = fontFunctions ?? throw new ArgumentNullException(nameof(fontFunctions));

            var container = new FontUserData(this, fontData);
            var ctx       = DelegateProxies.CreateMultiUserData(destroy, container);

            HarfBuzzApi.hb_font_set_funcs(Handle, fontFunctions.Handle, (void *)ctx, DelegateProxies.ReleaseDelegateProxyForMulti);
        }
コード例 #2
0
 public void SetFontFunctions(FontFunctions fontFunctions, object fontData) =>
 SetFontFunctions(fontFunctions, fontData, null);
コード例 #3
0
 public void SetFontFunctions(FontFunctions fontFunctions) =>
 SetFontFunctions(fontFunctions, null, null);