It looks like we don't have character mappings from ZapfDingbats
characters to Unicode in Glyphs.java althought we have them in the
glyphlist.xml that the Glyphs.java was derived from. Furthermore,
there's a simple "if !=null" check missing. I'll look into it.

On 15.02.2008 13:11:57 Vincent Hennebert wrote:
> Jeremias Maerki wrote:
> > Took me a bit to find the font you were talking about. I can see in the
> > AFM that it states the AdobeStandardEncoding as default encoding, so
> > until I can implement the second part of the changes I was talking about,
> > no Cyrillics for you. ;-)
> 
> Ah, ok. I’ll wait for the next bunch of changes, then.
> 
> However, if I understand the commit message correctly, a font like Zapf 
> Dingbats which uses a non-standard encoding is now supposed to be 
> working?
> 
> Then you might be interested in the error message below.
> Font configuration:
>     <font kerning="yes" embed-url="type1/gsfonts/d050000l.pfb">
>         <font-triplet name="Dingbats" style="normal" weight="normal"/>
>     </font>
> Excerpt from the afm file:
>     FontName Dingbats
>     FullName Dingbats 
>     FamilyName Dingbats
>     EncodingScheme FontSpecific
> 
> Error message:
> 15-Feb-2008 12:00:27 org.apache.fop.fonts.type1.PFMFile loadExtMetrics
> WARNING: Size of extension block was expected to be 52 bytes, but was 0 bytes.
> 15-Feb-2008 12:00:27 org.apache.fop.cli.Main startFOP
> SEVERE: Exception
> java.lang.NullPointerException
>         at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:189)
>         at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:116)
>         at org.apache.fop.cli.Main.startFOP(Main.java:166)
>         at org.apache.fop.cli.Main.main(Main.java:197)
> 
> ---------
> 
> java.lang.NullPointerException
>         at 
> org.apache.fop.fonts.type1.Type1FontLoader.buildCustomEncoding(Type1FontLoader.java:299)
>         at 
> org.apache.fop.fonts.type1.Type1FontLoader.buildFont(Type1FontLoader.java:142)
>         at 
> org.apache.fop.fonts.type1.Type1FontLoader.read(Type1FontLoader.java:111)
>         at org.apache.fop.fonts.FontLoader.getFont(FontLoader.java:164)
>         at org.apache.fop.fonts.FontLoader.loadFont(FontLoader.java:113)
>         at org.apache.fop.fonts.LazyFont.load(LazyFont.java:126)
>         at org.apache.fop.fonts.LazyFont.getAscender(LazyFont.java:233)
>         at org.apache.fop.fonts.Font.getAscender(Font.java:96)
>         at 
> org.apache.fop.layoutmgr.BlockLayoutManager.initialize(BlockLayoutManager.java:86)
>         at 
> org.apache.fop.layoutmgr.AbstractLayoutManager.getChildLM(AbstractLayoutManager.java:118)
>         at 
> org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:77)
>         at 
> org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:145)
>         at 
> org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:554)
>         at 
> org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:137)
>         at 
> org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:302)
>         at 
> org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:264)
>         at 
> org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:106)
>         at 
> org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:234)
>         at 
> org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:123)
>         at 
> org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:374)
>         at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:196)
>         at 
> org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
>         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
> Source)
>         at 
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
>         at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>  Source)
>         at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
> Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>         at 
> org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
>         at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:186)
>         at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:116)
>         at org.apache.fop.cli.Main.startFOP(Main.java:166)
>         at org.apache.fop.cli.Main.main(Main.java:197)
> 
> <snip/>
> 
> Vincent
> 
> 
> -- 
> Vincent Hennebert                            Anyware Technologies
> http://people.apache.org/~vhennebert         http://www.anyware-tech.com
> Apache FOP Committer                         FOP Development/Consulting




Jeremias Maerki

Reply via email to