A computer readable recording medium recording thereon a computer program product for causing a computer to realize a function of a setting unit in an apparatus for setting a focus condition at the time of exposure in a photolithography process of forming a resist pattern on a substrate,
- said setting apparatus including:
- a mask for exposure having a first pattern transmitting only zero-order light of a light source and a second pattern transmitting zero-order light and higher order light of the light source;
- a film thickness measuring unit for measuring a film thickness when a film on the substrate is exposed to only the zero-order light of the light source transmitted through the mask and then developed to reduce a first portion of the resist pattern of the film on the substrate in the photolithography process in which a certain focus condition has been already set, and a film thickness when the film on the substrate is exposed to the zero-order light and the higher order light of the light source transmitted through the mask and then developed to reduce a second portion of the resist pattern of the film on the substrate in the photolithography process in which the certain focus condition has been already set;
- the setting unit;
- and
- a storage unit for storing information of a previously obtained correlation between film thicknesses of the first and second portions and line widths of the resist pattern, and
- said computer program product comprising:
- computer readable program code means for causing the computer to convert the measured film thickness of the first portion and the measured film thickness of the second portion into line widths of the resist pattern by said information of the previously obtained correlation stored in said storage unit, subtracting the converted line width of the second portion from the converted line width of the first portion, and setting a new focus condition based on a line width difference resulting from the subtraction, in the setting unit.