# HG changeset patch # User Markus Mützel # Date 1591465650 -7200 # Node ID cd86f37bfbc3462491df0eee3fc9dc29af79e9a1 # Parent c57b33d1db487971927267df76c111b2d8702f5c uisetfont.m: Make BISTs conditional on HAVE_FONTCONFIG. diff -r c57b33d1db48 -r cd86f37bfbc3 scripts/gui/uisetfont.m --- a/scripts/gui/uisetfont.m Sat Jun 06 11:17:42 2020 -0400 +++ b/scripts/gui/uisetfont.m Sat Jun 06 19:47:30 2020 +0200 @@ -362,8 +362,13 @@ ## Test input validation -%!error uisetfont (1, 2, 3) -%!error uisetfont (110, struct ()) -%!error uisetfont (groot ()) -%!error uisetfont (struct ()) -%!error uisetfont ({"Title"}) +%!testif HAVE_FONTCONFIG +%! fail ("uisetfont (1, 2, 3)", "Invalid call"); +%!testif HAVE_FONTCONFIG +%! fail ("uisetfont (110, struct ())", "Invalid call"); +%!testif HAVE_FONTCONFIG +%! fail ("uisetfont (groot ())", "H must be a handle to an axes"); +%!testif HAVE_FONTCONFIG +%! fail ("uisetfont (struct ())", "FONTSTRUCT .* must have fields FontName,.*"); +%!testif HAVE_FONTCONFIG +%! fail ("uisetfont ({'Title'})", "TITLE must be a character vector");