You can do it if the field uses Rich Text Formatting. Then each part of its value can have a different font, defined using Span objects. I'm not sure how this could be set up using PDFBox, though.
On Fri, Feb 28, 2020 at 12:16 AM Jesse Zhou <jesse.z...@gusto.com.invalid> wrote: > Hello, > > I'm wondering if it's possible to use multiple fonts in the same text > field. I see that Tilman posted an example of using multiple fonts here, > but I'm not sure if I can port this behavior to a user-fillable textfield. > > > https://stackoverflow.com/questions/54248117/pdfbox-not-supporting-multiple-languages > > For context, we are using the default Courier built into all pdf readers, > which doesn't have some unique characters we'd like to mix in the same > input. At the very least, it would be nice to switch between the default > Zapfdingbats and Courier in the same text field. > > We could also try finding a font that includes all the characters we need > but we'd rather see if this is an option first. If we can figure this out, > we could also support multiple languages in text fields later on. > > Thanks in advance! >