Skip to content

Commit

Permalink
Set font back to regular after rendering burmese
Browse files Browse the repository at this point in the history
  • Loading branch information
correcthorsebatterystaple authored Oct 30, 2024
1 parent 01caf0e commit 69bd8d9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/src/services/reportFile.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -540,10 +540,9 @@ class ReportFileService {
}
} else textToPrint = value;

doc
.font(isBurmese(textToPrint) ? "Burmese" : "Regular")
.fontSize(13)
.text(textToPrint, 80 + 250 * (i % 2), 170 + ((i - (i % 2)) / 2) * 50);
doc.font(isBurmese(textToPrint) ? "Burmese" : "Regular")
doc.fontSize(13).text(textToPrint, 80 + 250 * (i % 2), 170 + ((i - (i % 2)) / 2) * 50);
doc.font("Regular")
});

doc.moveDown(1);
Expand Down

0 comments on commit 69bd8d9

Please sign in to comment.