A few stars are in the Zodiac, and the Moon sometimes passes in front of them. This allows calculating their size by their angular size and distance. This is not very reliable. Most do not, so astronomers calculate their size by their spectral type (which gives their luminosity), distance, and brightness. This is even less reliable.