From 448321902c1db9360e2d4c6c6edc1f0b1b087095 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 23 Apr 2023 06:13:53 +0200 Subject: Main.java: Switch form field font to Courier New --- Main.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Main.java') diff --git a/Main.java b/Main.java index 701119f..b69dcd3 100644 --- a/Main.java +++ b/Main.java @@ -31,12 +31,12 @@ public class Main { // FontProgram courier_program = FontProgramFactory.createFont("CourierNewPSMT"); // FontProgram courier_program = FontProgramFactory // .createFont("/System/Library/Fonts/Supplemental/Courier New.ttf"); - // FontProgram courier_program = FontProgramFactory - // .createRegisteredFont("CourierNewPSMT"); + FontProgram courier_program = FontProgramFactory + .createRegisteredFont("CourierNewPSMT"); // FontProgram courier_program = FontProgramFactory // .createFont("Courier New.ttf"); - FontProgram courier_program = FontProgramFactory - .createFont("/System/Library/Fonts/Supplemental/Copperplate.ttc", 0, false); + // FontProgram courier_program = FontProgramFactory + // .createFont("/System/Library/Fonts/Supplemental/Copperplate.ttc", 0, false); PdfFont courier = PdfFontFactory .createFont(courier_program, PdfEncodings.UTF8, PdfFontFactory.EmbeddingStrategy.FORCE_NOT_EMBEDDED); -- cgit v1.2.3