Skip to content

Commit 4d89d03

Browse files
committed
Fix #1091
1 parent 0e1db94 commit 4d89d03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/pdfcpu/primitives/textField.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ func fontAttrs(ctx *model.Context, fd types.Dict, fontID, text string, fonts map
10221022
if err != nil {
10231023
return "", "", "", nil, err
10241024
}
1025-
if len(prefix) == 0 && hasUTF(text) {
1025+
if !font.SupportedFont(name) || (len(prefix) == 0 && hasUTF(text)) {
10261026
// create utf8 font * save as indRef
10271027
fontID, name, lang, fontIndRef, err = ensureUTF8FormFont(ctx, fonts)
10281028
if err != nil {

0 commit comments

Comments
 (0)