"When enabled the font engine will train a weighting model to provide estimates for string sizes.
-
"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
-
@foone feels like an oversight in font rendering toolkits that you can't just ask for an approximate width, as it would probably know best
-
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
-
halcy:icosahedron:replied to Greg last edited by [email protected]