diff --git a/svc/routes/order_pdf.go b/svc/routes/order_pdf.go index c8cb103..c6429b4 100644 --- a/svc/routes/order_pdf.go +++ b/svc/routes/order_pdf.go @@ -409,7 +409,7 @@ func newOrderPdf() (*gofpdf.Fpdf, error) { pdf.SetMargins(10, 10, 10) pdf.SetAutoPageBreak(false, 12) - if err := registerDejavuFonts(pdf, "dejavu", "dejavu-b"); err != nil { + if err := registerDejavuFonts(pdf, "dejavu"); err != nil { return nil, err } diff --git a/svc/routes/pdf_assets.go b/svc/routes/pdf_assets.go index 97ef515..87d7eaf 100644 --- a/svc/routes/pdf_assets.go +++ b/svc/routes/pdf_assets.go @@ -87,7 +87,7 @@ func resolveAssetPath(fileName string, relativeDirs []string) (string, error) { return "", fmt.Errorf("asset not found: %s (tried: %s)", fileName, strings.Join(tried, ", ")) } -func registerDejavuFonts(pdf *gofpdf.Fpdf, s string, s2 string) error { +func registerDejavuFonts(pdf *gofpdf.Fpdf, s string) error { regPath, err := resolvePdfAssetPath("DejaVuSans.ttf") if err != nil { diff --git a/svc/routes/statement_header_pdf.go b/svc/routes/statement_header_pdf.go index 78093af..d2f8ff4 100644 --- a/svc/routes/statement_header_pdf.go +++ b/svc/routes/statement_header_pdf.go @@ -64,7 +64,7 @@ var ( /* ============================ FONT / FORMAT ============================ */ func hEnsureFonts(pdf *gofpdf.Fpdf) error { - return registerDejavuFonts(pdf, hFontFamilyReg, hFontFamilyBold) + return registerDejavuFonts(pdf, hFontFamilyReg) } func hNormalizeWidths(base []float64, targetTotal float64) []float64 { diff --git a/svc/routes/statements_pdf.go b/svc/routes/statements_pdf.go index 480d693..170024e 100644 --- a/svc/routes/statements_pdf.go +++ b/svc/routes/statements_pdf.go @@ -132,7 +132,7 @@ func formatCurrencyTR(n float64) string { // Fontları yükle func ensureFonts(pdf *gofpdf.Fpdf) error { - return registerDejavuFonts(pdf, fontFamilyReg, fontFamilyBold) + return registerDejavuFonts(pdf, fontFamilyReg) } // Güvenli satır kırma