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

Tilman Hausherr commented on PDFBOX-62:
---------------------------------------

Yes, I forgot to test my changes against a "pure" version; this is the current 
content of the "PDFBox_External_Fonts.properties" file. Also, don't forget 
PDFBOX-1800, the built-in Arial font doesn't work properly.

{code}
#Arial-BoldItalicMT=org/apache/pdfbox/resources/ttf/Arial-BoldItalicMT.ttf
#Arial-BoldMT=org/apache/pdfbox/resources/ttf/Arial-BoldMT.ttf
#ArialMT=org/apache/pdfbox/resources/ttf/ArialMT.ttf
Arial-BoldItalicMT=c:/Windows/Fonts/ARIALBI.TTF
Arial-BoldMT=c:/Windows/Fonts/ARIALBD.TTF
ArialMT=C:/Windows/Fonts/ARIAL.TTF
#UNKNOWN_FONT=org/apache/pdfbox/resources/ttf/ArialMT.ttf
UNKNOWN_FONT=C:/Windows/Fonts/ARIAL.TTF
Arial=C:/Windows/Fonts/ARIAL.TTF
Arial,Bold=c:/Windows/Fonts/ARIALBD.TTF
Arial,BoldItalic=c:/Windows/Fonts/ARIALBI.TTF
ArialNarrow=C:/Windows/Fonts/ARIALN.TTF
ArialNarrow,Bold=C:/Windows/Fonts/ARIALNB.TTF
Symbol=C:/Windows/Fonts/SYMBOL.TTF
Arial-ItalicMT=C:/Windows/Fonts/ARIALI.TTF
TimesNewRomanPSMT=C:/Windows/Fonts/TIMES.TTF
TimesNewRoman=C:/Windows/Fonts/times.ttf
TimesNewRoman,Bold=C:/Windows/Fonts/timesbd.ttf
TimesNewRoman,Italic=C:/Windows/Fonts/timesi.ttf
CenturyGothic=C:/Windows/Fonts/gothic.ttf
TrebuchetMS=C:/Windows/Fonts/verdana.ttf
TrebuchetMS-Bold=C:/Windows/Fonts/verdanab.ttf
Verdana=C:/Windows/Fonts/verdana.ttf
Verdana-Bold=C:/Windows/Fonts/verdanab.ttf
Verdana-Italic=C:/Windows/Fonts/verdanai.ttf
Verdana-BoldItalic=C:/Windows/Fonts/verdanaz.ttf
LucidaConsole=C:/Windows/Fonts/lucon.ttf
Tahoma=C:/Windows/Fonts/tahoma.ttf
TahomaBold=C:/Windows/Fonts/tahomabd.ttf
TimesNewRomanPS-BoldMT=C:/Windows/Fonts/TIMESBD.TTF
TimesNewRomanPS-ItalicMT=C:/Windows/Fonts/TIMESI.TTF
BookmanOldStyle=C:/Windows/Fonts/BOOKOS.TTF
BookmanOldStyle-Bold=C:/Windows/Fonts/BOOKOSB.TTF
CourierNewPSMT=C:/Windows/Fonts/cour.TTF
Courier-Bold=C:/Windows/Fonts/courbd.TTF
Verdana-BoldItalic=C:/Windows/Fonts/verdanaz.TTF
BookmanOldStyle-Italic=C:/Windows/Fonts/BOOKOSI.TTF
TimesNewRomanPS-BoldItalicMT=C:/Windows/Fonts/timesbi.ttf
TimesNewRoman,Bold=c:/Windows/Fonts/TIMESBD.TTF
TimesNewRoman,BoldItalic=c:/Windows/Fonts/TIMESBI.TTF
Arial-Black=c:/Windows/Fonts/ariblk.ttf
PalatinoLinotype-Roman=c:/Windows/Fonts/pala.ttf
PalatinoLinotype-Bold=c:/Windows/Fonts/palab.ttf
PalatinoLinotype-Italic=c:/Windows/Fonts/palai.ttf
PalatinoLinotype-BoldItalic=c:/Windows/Fonts/palabi.ttf
ArialUnicodeMS=c:/Windows/Fonts/ARIALUNI.TTF

# PDFBOX-870
CHelveticaCondensed=C:/Windows/Fonts/ARIALN.TTF
CBHelveticaCondensedBold=C:/Windows/Fonts/ARIALNB.TTF
#BHelveticaBold=c:/Windows/Fonts/ARIALBD.TTF
#IHelveticaOblique=C:/Windows/Fonts/ARIAL.TTF

BHelveticaBold=C:/Windows/Fonts/timesbd.ttf
IHelveticaOblique=C:/Windows/Fonts/timesi.ttf
{code}

> Incorrect (zero) character widths returned in some docs
> -------------------------------------------------------
>
>                 Key: PDFBOX-62
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-62
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering, Text extraction
>            Assignee: Andreas Lehmkühler
>         Attachments: 5542.pdf, PDTrueTypeFont.diff, 
> pdfbox-2006-zerowidth.pdf-1.png, pdfbox-62-zerowidth.pdf-1.png
>
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1216674
> Originally submitted by tamirhassan on 2005-06-07 13:42.
> For certain PDF documents (such as the one attached) 
> the character/string widths (as obtained e.g. by the 
> PDFont.getStringWidth method) are not returned 
> correctly, i.e. they appear to be correct for punctuation 
> characters but are zero for alphanumeric characters.  
> It seems as if these alphanumeric characters are NOT 
> within PDFont.firstChar and PDFont.lastChar in the 
> Type 1 font.  The method therefore attempts to obtain 
> the font widths from the AFM (font metric) file, but fails 
> (silently) with a 'resource is null' logline message.
> (Note that this problem doesn't seem to occur with Type 
> 1 fonts in other documents.)
> A more detailed discussion regarding this issue can be 
> found in this link:
> http://sourceforge.net/forum/forum.php?
> thread_id=1260349&forum_id=267205
> Thanks in advance for any help that can be obtained,
> Tam



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to