Local heights and densities for curves of low genus