Weighted locally gentle quivers and Cartan matrices