From aed6a286112ecbfbb71938fcbeaba900c4f3017d Mon Sep 17 00:00:00 2001 From: Brooks Watson Date: Wed, 22 May 2024 14:19:02 -0400 Subject: [PATCH] Updated Subtype I updated the SubType TrueType. I see some research saying that Type1 fonts are seeing declining support. I didn't see any change in functionality, but figured it would be good to make the change regardless. --- pypdf/_writer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypdf/_writer.py b/pypdf/_writer.py index 94b141420..54a16d26c 100644 --- a/pypdf/_writer.py +++ b/pypdf/_writer.py @@ -839,7 +839,7 @@ def _update_field_annotation( font_dict = dr["/Font"] font_entry = DictionaryObject({ NameObject("/Type"): NameObject("/Font"), - NameObject("/Subtype"): NameObject("/Type1"), + NameObject("/Subtype"): NameObject("/TrueType"), NameObject("/BaseFont"): NameObject("/Helvetica"), NameObject("/Encoding"): NameObject("/WinAnsiEncoding") })