check_formats function

Check if a format or alignment is supported