const textSize = TextRenderSupport.measureText(textContent, font)
let translateY: number = (labelSize.height - textSize.height) * 0.5
switch (this.verticalAlignment) {
case 'top':
translateY = padding
break
case 'center':
translateY = (labelSize.height - textSize.height) * 0.5
break
case 'bottom':
translateY = labelSize.height - textSize.height - padding
break
}