Thanks for the reply,

I started from a Type1 font for which, I have the impression, the -enc ansi
option is not supported/relevant.

Attached the metrics file.

All guidance where to look is appreciated,

Thanks,

Peter

> -----Original Message-----
> From: J.Pietschmann [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 29, 2006 11:32 PM
> To: fop-users@xmlgraphics.apache.org
> Subject: Re: NPE IN SingleByteFont.hasChar when using IDAutomationC39S
> font
> 
> Peter wrote:
> > I am trying to use a Barcode font (IDAutomationC39S) and I am getting an
> NPE
> > with the following trace listed lower.
> 
> Barcode fonts are tricky, because barcode glyphs are not separate
> unicode glyphs.
> It seems that the encoding for your font is unknown. Try to generate
> the font metrics using the -enc ansi, although I think you did this
> already. Would you mind sending in your metrics file?
> 
> If all else fails, try the barcode4j extension or generate a SVG
> for the barcode and use this (there are XSLT style sheets out there
> for this purpose).
> 
> J.Pietschmann
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
<?xml version="1.0" encoding="UTF-8"?><font-metrics type="TYPE1"><font-name>IDAutomationC39S</font-name><embed/><encoding>UnknownEncoding</encoding><cap-height>1497</cap-height><x-height>1497</x-height><ascender>1497</ascender><descender>-100</descender><bbox><left>-100</left><bottom>-105</bottom><right>810</right><top>1502</top></bbox><flags>0</flags><stemv>480</stemv><italicangle>0</italicangle><first-char>32</first-char><last-char>173</last-char><widths><char idx="32" wdt="800"/><char idx="33" wdt="800"/><char idx="34" wdt="800"/><char idx="35" wdt="800"/><char idx="36" wdt="800"/><char idx="37" wdt="800"/><char idx="38" wdt="800"/><char idx="39" wdt="800"/><char idx="40" wdt="800"/><char idx="41" wdt="800"/><char idx="42" wdt="800"/><char idx="43" wdt="800"/><char idx="44" wdt="800"/><char idx="45" wdt="800"/><char idx="46" wdt="800"/><char idx="47" wdt="800"/><char idx="48" wdt="800"/><char idx="49" wdt="800"/><char idx="50" wdt="800"/><char idx="51" wdt="800"/><char idx="52" wdt="800"/><char idx="53" wdt="800"/><char idx="54" wdt="800"/><char idx="55" wdt="800"/><char idx="56" wdt="800"/><char idx="57" wdt="800"/><char idx="58" wdt="800"/><char idx="59" wdt="800"/><char idx="60" wdt="800"/><char idx="61" wdt="800"/><char idx="62" wdt="800"/><char idx="63" wdt="800"/><char idx="64" wdt="800"/><char idx="65" wdt="800"/><char idx="66" wdt="800"/><char idx="67" wdt="800"/><char idx="68" wdt="800"/><char idx="69" wdt="800"/><char idx="70" wdt="800"/><char idx="71" wdt="800"/><char idx="72" wdt="800"/><char idx="73" wdt="800"/><char idx="74" wdt="800"/><char idx="75" wdt="800"/><char idx="76" wdt="800"/><char idx="77" wdt="800"/><char idx="78" wdt="800"/><char idx="79" wdt="800"/><char idx="80" wdt="800"/><char idx="81" wdt="800"/><char idx="82" wdt="800"/><char idx="83" wdt="800"/><char idx="84" wdt="800"/><char idx="85" wdt="800"/><char idx="86" wdt="800"/><char idx="87" wdt="800"/><char idx="88" wdt="800"/><char idx="89" wdt="800"/><char idx="90" wdt="800"/><char idx="91" wdt="800"/><char idx="92" wdt="800"/><char idx="93" wdt="800"/><char idx="94" wdt="800"/><char idx="95" wdt="800"/><char idx="96" wdt="800"/><char idx="97" wdt="800"/><char idx="98" wdt="800"/><char idx="99" wdt="800"/><char idx="100" wdt="800"/><char idx="101" wdt="800"/><char idx="102" wdt="800"/><char idx="103" wdt="800"/><char idx="104" wdt="800"/><char idx="105" wdt="800"/><char idx="106" wdt="800"/><char idx="107" wdt="800"/><char idx="108" wdt="800"/><char idx="109" wdt="800"/><char idx="110" wdt="800"/><char idx="111" wdt="800"/><char idx="112" wdt="800"/><char idx="113" wdt="800"/><char idx="114" wdt="800"/><char idx="115" wdt="800"/><char idx="116" wdt="800"/><char idx="117" wdt="800"/><char idx="118" wdt="800"/><char idx="119" wdt="800"/><char idx="120" wdt="800"/><char idx="121" wdt="800"/><char idx="122" wdt="800"/><char idx="123" wdt="800"/><char idx="124" wdt="800"/><char idx="125" wdt="800"/><char idx="126" wdt="800"/><char idx="127" wdt="800"/><char idx="128" wdt="800"/><char idx="129" wdt="800"/><char idx="130" wdt="800"/><char idx="131" wdt="800"/><char idx="132" wdt="800"/><char idx="133" wdt="800"/><char idx="134" wdt="800"/><char idx="135" wdt="800"/><char idx="136" wdt="800"/><char idx="137" wdt="800"/><char idx="138" wdt="800"/><char idx="139" wdt="800"/><char idx="140" wdt="800"/><char idx="141" wdt="800"/><char idx="142" wdt="800"/><char idx="143" wdt="800"/><char idx="144" wdt="800"/><char idx="145" wdt="800"/><char idx="146" wdt="800"/><char idx="147" wdt="800"/><char idx="148" wdt="800"/><char idx="149" wdt="800"/><char idx="150" wdt="800"/><char idx="151" wdt="800"/><char idx="152" wdt="800"/><char idx="153" wdt="800"/><char idx="154" wdt="800"/><char idx="155" wdt="800"/><char idx="156" wdt="800"/><char idx="157" wdt="800"/><char idx="158" wdt="800"/><char idx="159" wdt="800"/><char idx="160" wdt="800"/><char idx="161" wdt="800"/><char idx="162" wdt="800"/><char idx="163" wdt="800"/><char idx="164" wdt="800"/><char idx="165" wdt="800"/><char idx="166" wdt="800"/><char idx="167" wdt="800"/><char idx="168" wdt="800"/><char idx="169" wdt="800"/><char idx="170" wdt="800"/><char idx="171" wdt="800"/><char idx="172" wdt="800"/><char idx="173" wdt="800"/></widths></font-metrics>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to