[ https://issues.apache.org/jira/browse/PDFBOX-2661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14308058#comment-14308058 ]
John Hewson commented on PDFBOX-2661: ------------------------------------- {quote} Does KaMi map to KozMinPro or HeiseiMin-W3? I think it should actually be KanjiMincho. Does HySm map to HYSMyeongJoStd-Medium or HYSMyeongJo-Medium? I think it should actually be HYSMyeongJo (not -Medium). Does STSo map to STSongStd-Light or STSong-Light? etc... So those mappings should IMO be confirmed before implemented. {quote} You may have just found a bug in iText. Agreed that we should check these manually before implementing anything. {quote} While you're at it with Acrobat Pro, I attached a Fonts2.pdf with references to "Foobar", "MinionPro-Bold" and "FranklinGothic-MediumItalic". I'm curious to see what resources Acrobat creates for those fields. Specifically, I'd like to see if Acrobat maps Foobar to Helvetica straight away or if it maps literally to Foobar and the fallback happens in the rendering process. {quote} I have Minion Pro installed, but not Franklin Gothic, so on my machine Acrobat maps /MinionPro-Bold to the correct font and embeds it when the form is filled. Neither Franklin Gothic nor Foobar get embedded, but Acrobat does preserve their names in the DA entry, here's all three: !fonts2-filled.png! {quote} "MinionPro-Bold" and "FranklinGothic-MediumItalic" are known internally to Adobe Reader, and on my box they get substituted with something not Helvetica even though I don't have those particular fonts installed (or are they built into Reader?). It would again be interesting to see if that substitution happens when creating the appearance stream or if it happens later. {quote} I don't have "FranklinGothic-MediumItalic" on my machine and Acrobat renders the PDF on the screen using Helvetica Bold Italic. We know already that Acrobat can use keywords such as "MediumItalic" to map to Bold Italic fonts, so I think that's what's happening. It doesn't know the base font "FranklinGothic" so it just uses Helvetica. Can you attach a screenshot of the filled forms on your machine with a zoom of 200%? > Implement font fallback for AcroForms > ------------------------------------- > > Key: PDFBOX-2661 > URL: https://issues.apache.org/jira/browse/PDFBOX-2661 > Project: PDFBox > Issue Type: Improvement > Components: AcroForm > Affects Versions: 1.8.8, 2.0.0 > Reporter: Maruan Sahyoun > Attachments: FontTest.java, Fonts.pdf, Fonts2.pdf, field-filled.png, > field.png, fonts2-filled.png > > > There are forms where the font specified in the fields default appearance is > not pointing to the correct fields or forms resources entry. Adobe > Reader/Acrobat have a (unspecified) fallback mechanism to resolve such > missing fonts. > We should be ably to come up with a similar solution. > A sample of such an issue can be found in PDFBOX-1234 -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org