measureText
Computes dimensions for text, based on current canvas state.
Rounds metrics, excluding width, to whole pixels. This is purely to minimize rendering differences with migration to in-browser measureText(), and may be revised in the future. See: github.com/CesiumGS/cesium/pull/13081