"When enabled the font engine will train a weighting model to provide estimates for string sizes. Once the model is sufficiently trained it will perform string wrapping without calling ctx.measureText once. This leads to massive performance gains at the cost of accuracy."

excuse me, what?

text sizes are too slow! lets instead train a model to estimate text size, inaccurately
yeah it does a thing where it measures the width of characters up until you've rendered 20,000 (or 500,000?) characters and then if so, it relies on a small hashmap of character->info that it estimates from instead of using the real measureText
that is slightly wacky and I'm not sure I want to use it
@foone Maybe it would be better if it was on the blockchain?