Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public void SetFontFunctions(FontFunctions fontFunctions, object fontData) =>
 SetFontFunctions(fontFunctions, fontData, null);
Exemplo n.º 3
0
 public void SetFontFunctions(FontFunctions fontFunctions) =>
 SetFontFunctions(fontFunctions, null, null);