Skip to content

Commit 3bec389

Browse files
committed
Offset of 3px for text background
1 parent c6626e1 commit 3bec389

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: fpdf.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2361,7 +2361,7 @@ func (f *Fpdf) CellFormat(w, h float64, txtStr, borderStr string, ln int,
23612361
op = "S"
23622362
}
23632363
/// dbg("(CellFormat) f.x %.2f f.k %.2f", f.x, f.k)
2364-
s.printf("%.2f %.2f %.2f %.2f re %s ", f.x*k, (f.h-f.y)*k, w*k, -h*k, op)
2364+
s.printf("%.2f %.2f %.2f %.2f re %s ", f.x*k+3, (f.h-f.y)*k, w*k, -h*k, op)
23652365
}
23662366
if len(borderStr) > 0 && borderStr != "1" {
23672367
// fmt.Printf("border is '%s', no fill\n", borderStr)

0 commit comments

Comments
 (0)