Line shape in weak and intermediate coupling: Theory and practical fitting procedures