This commit is contained in:
2026-10-13 13:50:13 +07:00
parent e77cc34b4d
commit 57fee0cc06
26 changed files with 2202 additions and 181 deletions
@@ -25,6 +25,11 @@ type Card struct {
//go:embed fonts/DejaVuSansCondensed.ttf
var font []byte
// FontData returns the Cyrillic print font for raster receipts.
func FontData() []byte {
return bytes.Clone(font)
}
// RegisterFont adds the existing Cyrillic print font to a PDF document.
func RegisterFont(pdf *fpdf.Fpdf) {
pdf.AddUTF8FontFromBytes("teams", "", font)