aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2023-04-23 06:13:53 +0200
committerTeddy Wing2023-04-23 06:13:53 +0200
commit448321902c1db9360e2d4c6c6edc1f0b1b087095 (patch)
treefd8eb3520c5eafaf2d478ca865ae4e470ce33710
parent227f65a1300cdc8bc5f57fc472a11e388f4e4518 (diff)
downloadpdf-form-replace-font2-448321902c1db9360e2d4c6c6edc1f0b1b087095.tar.bz2
Main.java: Switch form field font to Courier New
-rw-r--r--Main.java8
1 files changed, 4 insertions, 4 deletions
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);