The present disclosure provides a method of forming a photomask layout. In
one example, the method comprises selecting a pattern feature on the
photomask layout, defining a global area centered at the pattern feature
on the photomask layout, calculating a pattern density inside the global
area, and correcting the pattern feature based on the pattern density and
patterning process data.