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); }
public void SetFontFunctions(FontFunctions fontFunctions, object fontData) => SetFontFunctions(fontFunctions, fontData, null);
public void SetFontFunctions(FontFunctions fontFunctions) => SetFontFunctions(fontFunctions, null, null);