view test/bug-49904.tst @ 28206:11d66485fc19 stable

Correctly cache fonts in ft_manager (bug #58150) * ft-text-renderer.cc (ft_manager::do_get_font): Call FT_Reference_Face to increment the FT_Face ref count otherwise any call to FT_Done will make the object be freed and un-cached. (ft_manager::do_font_destroyed): Call FT_Done_Face to decrement the FT_Face ref count.
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Sat, 11 Apr 2020 15:57:36 +0200
parents db2a531717b3
children 2838bbd84b87
line wrap: on
line source

%!shared A
%! A = [ ...
%!  1.00003+0.00000i, -0.68292+0.26406i, -0.57670+0.25291i,  0.34986+0.03335i;
%! -0.68292-0.26406i,  0.94539+0.00000i,  0.69006-0.03967i, -0.43847+0.38619i;
%! -0.57670-0.25291i,  0.69006+0.03967i,  0.95260+0.00000i, -0.34734+0.40728i;
%!  0.34986-0.03335i, -0.43847-0.38619i, -0.34734-0.40728i,  0.98356+0.00000i];
%!

%!test
%! [Ainv, rcond] = inv (A);
%! assert (ishermitian (Ainv));
%! assert (A * Ainv, eye (4, 'double'), eps ('double') / rcond)

%!test
%! [Ainv, rcond] = inv (single (A));
%! assert (ishermitian (Ainv));
%! assert (A * Ainv, eye (4, 'single'), eps ('single') / rcond)