fix(image): wrong label size

This commit is contained in:
Syd Xu
2021-11-26 14:31:35 +08:00
parent 63d088f64a
commit 429e30db91

View File

@@ -231,5 +231,5 @@ func DrawLabelInWidth(gc *draw2dimg.GraphicContext, font *Font, label string, pt
width := right - left
fontWidth := width + padding*2
scale := boundWidth / fontWidth
DrawLabelInWidth(gc, font, label, pt, txtColor, bgColor, scale)
DrawLabel(gc, font, label, pt, txtColor, bgColor, scale)
}