Characteristic linear system of an algebraic family of curves