diff --git a/draw.go b/draw.go index e188079..69608fd 100644 --- a/draw.go +++ b/draw.go @@ -300,6 +300,8 @@ func (d draw) TextWithin(r Renderer, text string, box Box, style Style) { y = y + (box.Height() >> 1) - (linesBox.Height() >> 1) case TextVerticalAlignMiddleBaseline: y = y + (box.Height() >> 1) - linesBox.Height() + case TextVerticalAlignTop: + y = y + box.Height() } var tx, ty int