diff options
| author | Teddy Wing | 2023-04-23 06:13:53 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2023-04-23 06:13:53 +0200 | 
| commit | 448321902c1db9360e2d4c6c6edc1f0b1b087095 (patch) | |
| tree | fd8eb3520c5eafaf2d478ca865ae4e470ce33710 | |
| parent | 227f65a1300cdc8bc5f57fc472a11e388f4e4518 (diff) | |
| download | pdf-form-replace-font2-448321902c1db9360e2d4c6c6edc1f0b1b087095.tar.bz2 | |
Main.java: Switch form field font to Courier New
| -rw-r--r-- | Main.java | 8 | 
1 files changed, 4 insertions, 4 deletions
| @@ -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); | 
