This PR factors out the construction of the font-related JSON schemas, as they were used in multiple places. Release Notes: - N/A
This PR extends the fix from #15336 to more places that had the same issue. An `add_references_to_properties` helper function has been added to handle these cases uniformly. Release Notes: - N/A