generated from VLADIMIR/template
up
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user