A printer includes: a print head including a plurality of nozzles capable
of printing dots of different sizes; a test-pattern forming section that
forms test patterns each have only one dot size; a test-pattern printing
section that prints the test patterns formed by the test-pattern forming
section for each nozzle of the print head; an output-density reading
section that optically reads the test patterns printed by the
test-pattern printing section to determine the output densities of the
test patterns; an input and output density-characteristic information
generating section that generates input-and-output density information
indicative of the relationship between the output densities read by the
output-density reading section and the input densities of each test
pattern formed by the test-pattern forming section; an input-density
correcting section that corrects the input density of each nozzle of the
print head on the basis of the input-and-output density information
generated by the input and output-density-characteristic-information
generating section; and a printing section that executes printing using
the input densities corrected for each nozzle by the input-density
correcting section.