Add a FIXME for the measure function to go away

This commit is contained in:
ahocevar
2018-11-16 13:49:50 +01:00
parent 6cbde797be
commit 981b398042

View File

@@ -743,6 +743,7 @@ class CanvasExecutor {
this.widths_[font] = widths = {};
}
//FIXME Do not create this function on every call
const measure = function(text) {
let width = widths[text];
if (!width) {