My point is not that I need to see clearance markers
in the gerbers, but the SQUARE PAD size has identical
size as the SOLDER-STOP MASK while it shouldn’t be so,
solder mask is set to be larger by the CLEARANCE value
which is not honoured for SQUARE PADs.
Clearance value is honoured only for ROUND PADS or
OVAL PADS, in this case SOLDER-STOP MASK is
larager than the PAD as set by CLEARANCE value, correctly.
This does not seem to be a Gerber problem, but is a bug in Pcbnew calculating solder mask or maybe the plotting.
Gerber is just a photo plotting format and does not really know anything about layer types.
I have changed the category.
Please register the bug on Launchpad, ideally with a sample.