[ 
https://issues.apache.org/jira/browse/PDFBOX-2661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14305037#comment-14305037
 ] 

Christer Palm commented on PDFBOX-2661:
---------------------------------------

This is what seems to be going on with Adobe Reader/Acrobat when Tf is used to 
set the font within the DA of a form field:

1. The Tf can refer to any of the standard fonts by name without the need for 
this name to be defined in the documents font resource
For example: DA = "/ZapfDingbats 11 Tf 0 g"

2. The Tf can also refer to the standard fonts using a shorthand alias names:
Cour    -> Courier
CoOb   -> Courier-Oblique
CoBo   -> Courier-Bold
CoBO   -> Courier-BoldOblique
Helv     -> Helvetica
HeOb   -> Helvetica-Oblique
HeBo   -> HelveticaBold
HeBO   -> HelveticaBoldOblique
TiRo    -> Times-Roman
TiIt       -> Times-Italic
TiBo    -> Times-Bold
TiBI     -> Times-BoldItalic
Symb  -> Symbol
ZaDb  -> ZapfDingbats

Optional fonts (mapping not confirmed):
KaGo  -> KanjiGothic
KaMi   -> KanjiMincho
MHei   -> MHei-Medium
MSun  -> MSung
STSo   -> STSong
HySm  -> HYSMyeongJo
HyGo   -> HYGoThic

Optional fonts without shorthand aliases:
HeiseiKakuGo-W5
HeiseiMin-W3
MHeiMed  -> MHei-Medium
MSung-Light
STSong-Light
HYSMyeongJo-Medium
HYGoThic-Medium

For example: DA = "/ZaDb 11 Tf 0 g"

3. On top of that, there seems to be a large number of other non-standard fonts 
that the Tf can refer to by name

4. If Adobe Reader doesn't find a match it will fall back to Helvetica

Note that, except for #4, this only applies when the Tf is within a form field 
DA.

> 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
>             Fix For: 2.1.0
>
>         Attachments: FontTest.java, Fonts.pdf
>
>
> 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

Reply via email to