brewcode icon indicating copy to clipboard operation
brewcode copied to clipboard

Support better text metrics

Open cbrewster opened this issue 5 years ago • 0 comments

Right now some text metrics are hard-coded (especially those related to hit_testing), we should instead use actual text metrics from the font itself. To do this, we probably need to store the text layout somewhere. Right now, we regenerate the text layout whenever we render, but this is expensive and we don't have access to the result text layout outside of the render method.

cbrewster avatar Feb 02 '20 23:02 cbrewster