Skip to content

Commit

Permalink
Updated Subtype
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
BrooksWatson717 committed May 22, 2024
1 parent b859c42 commit aed6a28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypdf/_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
})
Expand Down

0 comments on commit aed6a28

Please sign in to comment.