You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Andrejus Chaliapinas <a....@infosana.com> on 2006/12/12 15:03:44 UTC
Could I prepare font metrics file for a font like Webdings (i.e. without Unicode cmap table inside)?
Hi,
When I run TTFReader (from 0.92 beta) over Webdings.ttf - I get this output:
Parsing font...
Reading c:\windows\fonts\webdings.ttf...
Number of glyphs in font: 227
2 cmap tables
Unicode cmap table not present
Unsupported format: Aborting
Question - is it possible then to prepare metrics file for this font as well
in the same way as for let say Arial?
Regards,
Andrejus
Re: Need some help on one particular FOTreeBuilder URI mismatch warning (v0.92beta)
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Well, you need to make sure you generate the nodes in a namespace-aware
fashion. Obviously, that doesn't happen in your Xalan extension. Just
specifying the "fo:" prefix on every element isn't enough.
Would you please post questions like that to fop-users in the future?
Thank you.
On 15.12.2006 14:07:52 Andrejus Chaliapinas wrote:
> Hi,
>
> I'm trying to process XML file by applying XSl stylesheet to it and using
> such constraint inside that XSL:
>
> <xsl:copy-of select="xalan:nodeset(ext:generateDynamicNodes())" />
>
> My Java method generateDynamicNodes by itself generates NodeList
> understandable by xalan in form like <fo:block>...</fo:block>.
>
> Now when I run everything together during transformation I get this warning:
>
> org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:
> 373) WARN: Mismatch: block (http://www.w3.org/1999/XSL/Format) vs. block ()
>
> Where should I additionally specify that URI to match?
>
> I've tried this syntax as well without any luck:
>
> <xsl:copy-of xmlns:fo="http://www.w3.org/1999/XSL/Format"
> select="xalan:nodeset(ext:generateDynamicNodes())" />
>
> Any help would be appreciated.
>
> Andrejus
Jeremias Maerki
Need some help on one particular FOTreeBuilder URI mismatch warning (v0.92beta)
Posted by Andrejus Chaliapinas <a....@infosana.com>.
Hi,
I'm trying to process XML file by applying XSl stylesheet to it and using
such constraint inside that XSL:
<xsl:copy-of select="xalan:nodeset(ext:generateDynamicNodes())" />
My Java method generateDynamicNodes by itself generates NodeList
understandable by xalan in form like <fo:block>...</fo:block>.
Now when I run everything together during transformation I get this warning:
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:
373) WARN: Mismatch: block (http://www.w3.org/1999/XSL/Format) vs. block ()
Where should I additionally specify that URI to match?
I've tried this syntax as well without any luck:
<xsl:copy-of xmlns:fo="http://www.w3.org/1999/XSL/Format"
select="xalan:nodeset(ext:generateDynamicNodes())" />
Any help would be appreciated.
Andrejus
Re: Could I prepare font metrics file for a font like Webdings (i.e. without Unicode cmap table inside)?
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Webdings.ttf defines a Symbol encoding (platform 3, encoding 0). Our
current code doesn't support that. Patches welcome.
OpenType spec: http://www.microsoft.com/OpenType/OTSpec/
The only other options that come to mind are:
- Convert webdings.tff to a Type 1 font somehow.
- Create SVG images from the glyphs you need.
On 13.12.2006 10:22:21 Andrejus Chaliapinas wrote:
> > > When I run TTFReader (from 0.92 beta) over Webdings.ttf - I get this
> > output:
> > >
> > > Parsing font...
> > > Reading c:\windows\fonts\webdings.ttf...
> > > Number of glyphs in font: 227
> > > 2 cmap tables
> > > Unicode cmap table not present
> > > Unsupported format: Aborting
> > >
> > > Question - is it possible then to prepare metrics file for this font as
> > well
> > > in the same way as for let say Arial?
> >
> > You can try to use the "-enc ansi" switch and see if it helps.
>
> Same result :( Any other thoughts?
>
> Andrejus
Jeremias Maerki
RE: Could I prepare font metrics file for a font like Webdings (i.e. without Unicode cmap table inside)?
Posted by Andrejus Chaliapinas <a....@infosana.com>.
> > When I run TTFReader (from 0.92 beta) over Webdings.ttf - I get this
> output:
> >
> > Parsing font...
> > Reading c:\windows\fonts\webdings.ttf...
> > Number of glyphs in font: 227
> > 2 cmap tables
> > Unicode cmap table not present
> > Unsupported format: Aborting
> >
> > Question - is it possible then to prepare metrics file for this font as
> well
> > in the same way as for let say Arial?
>
> You can try to use the "-enc ansi" switch and see if it helps.
Same result :( Any other thoughts?
Andrejus
Re: Could I prepare font metrics file for a font like Webdings (i.e.
without Unicode cmap table inside)?
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Andrejus Chaliapinas wrote:
> When I run TTFReader (from 0.92 beta) over Webdings.ttf - I get this output:
>
> Parsing font...
> Reading c:\windows\fonts\webdings.ttf...
> Number of glyphs in font: 227
> 2 cmap tables
> Unicode cmap table not present
> Unsupported format: Aborting
>
> Question - is it possible then to prepare metrics file for this font as well
> in the same way as for let say Arial?
You can try to use the "-enc ansi" switch and see if it helps.
J.Pietschmann