bug fix high-dpi canvas support

There was a bug in the rendering process of canvas at the time of the high-dpi display.

* Only figure is enlarged, the character drawing is not compatible
* The size of the canvas is changed again when you redraw the canvas

The cause is a high-dpi corresponding leakage of font sizing and setting size  leakage in the retinaScale function within.