For example, when the printer unit has the dot-forming elements at a pitch of k raster lines in the sub-scanning direction, where k is a natural number of not less than 2, the print control data causes the printer unit to carry out the sub-scan by a feeding amount. of s-k/m raster lines and print the test pattern, in order to detect a misalignment of dots created at m different times, where m is a