Draw text using decimal numbers

Fixes #972
This commit is contained in:
Daniel Imms
2017-09-12 18:55:59 -07:00
parent 1897f0f51a
commit 403fd3cd4f
3 changed files with 42 additions and 13 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ export class CharMeasure extends EventEmitter implements ICharMeasure {
return;
}
if (this._width !== geometry.width || this._height !== geometry.height) {
this._width = Math.ceil(geometry.width);
this._width = geometry.width;
this._height = Math.ceil(geometry.height);
this.emit('charsizechanged');
}