get-text-metrics (npm): Measure text using the Canvas API.
Keywords: measure|text|metrics|canvas|offscreen