Using the source residual redundancy in a joint source and channel coded modulation (JSCCM) system to achieve a shaping gain has proven to be a good solution for probabilistic amplitude shaping. In a JSCCM system, rate-compatible source codes are essential for adapting to dynamically changing source probabilities. However, conventional rate-compatible source codes are not appropriate for JSCCM systems, since they may yield a loss in the shaping gain. Moreover, a code design that depends solely on the source decoding threshold appears to be ill suited, thus complicating the search for good source codes. In this paper, we propose a rate-compatible family of source codes for JSCCM systems based on an achievable system rate analysis and the source protograph extrinsic information transfer (PEXIT) algorithm. The proposed codes not only have good source decoding thresholds but also obtain shaping gains over the whole considered range of source probabilities. Numerical results show that the proposed rate-compatible family of source codes can significantly improve the bit-error-rate (BER) performance of the JSCCM system.