Set textAlign to the canvas context

This commit is contained in:
Frederic Junod
2018-05-17 13:15:04 +02:00
parent 8271a51f65
commit b34cdb58e3

View File

@@ -796,7 +796,7 @@ CanvasImmediateRenderer.prototype.setContextTextState_ = function(textState) {
contextTextState.font = context.font = textState.font;
}
if (contextTextState.textAlign != textAlign) {
contextTextState.textAlign = textAlign;
contextTextState.textAlign = context.textAlign = textAlign;
}
if (contextTextState.textBaseline != textState.textBaseline) {
contextTextState.textBaseline = context.textBaseline =