mirror of
https://github.com/bububa/openvision.git
synced 2025-09-27 01:56:04 +08:00
fix(image): wrong label size
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user