Skip to main content
Participating Frequently
May 5, 2020
Question

Form field font encoding

  • May 5, 2020
  • 1 reply
  • 4358 views

Hi.

I have a PDF where I have added form fields in Acrobat Pro DC and I've set the font in the form fields settings to be Arial.

The form fields are being populated in a Java program, but for some reason the program throws an error when the font is Arial, but it works fine when the font is for example Helvetica. 

 

I suspect it has something to do with the font encoding.

Hope someone can help.

 

I'm using a Macbook Pro

This topic has been closed for replies.

1 reply

Legend
May 5, 2020

That's really something for the author of the Java program. Certainly, there are many different ways a font might appear in a PDF, and different encodings is all part of it.

Participating Frequently
May 5, 2020

Ok. But the error seems to only occur, when the text includes special characters for example "ð".

But Helvetica handles the special characters just fine.

 

When choosing a font for the form field, the list of fonts seems to be grouped by horizontal lines (see attached screenshot). Are they grouped in types of encodings or something? I've tried all the fonts in the top group (where Helvetica is) and they all work fine. I haven't tried all the other ones, but all the other ones that I've tried outside of that group, don't work.

 

When using Arial (and many of the other ones), the error in my program says:
"U+00F0 is not available in this font's encoding: MacRomanEncoding with differences".

 

"U+00F0" is the letter "ð". What type of encoding do the fonts in the top group have (e.g. Helvetica) and is there any way to use a different encoding with Arial to make it work?

Bernd Alheit
Community Expert
Community Expert
May 5, 2020

Is the font Arial full embedded?