Text this: Chiral Emission from Optical Metasurfaces and Metacavities