Use standard text alignment properties
Use the standard text alignment properties rather than rolling our own (probably). See https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Drawing_text under "Styling text".
Use the standard text alignment properties rather than rolling our own (probably). See https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Drawing_text under "Styling text".