Text this: Generalized toric polygons, T-branes, and 5d SCFTs