You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Levy, Alane" <al...@cognex.com> on 2002/03/26 20:02:44 UTC
Embedding Type I fonts
I am having trouble getting FOP to recognize a Type I font
(Helvetica-Light).
I followed the instructions on the web page
(http://xml.apache.org/fop/fonts.html) to generate the attached font metrics
file from the hvl_____.pfm file from Adobe.
<<hvl_____.xml>>
I added the following element definition to the conf/userconfig.xml file
inside the <fonts> element:
<font metrics-file="hvl_____.xml" kerning="yes">
<font-triplet name="Helvetica-Light" style="normal"
weight="normal"/>
</font>
I also tried the above with an absolute path to the metrics file, but it
made no difference.
When I run FOP with the following command line:
>fop -c c:\fop-0.20.3\conf\userconfig.xml sample_getting_started.fo
sample_getting_started.pdf
the following errors result:
>java -cp
c:\fop-0.20.3\build\fop.jar;c:\fop-0.20.3\lib\batik.jar;c:\fop-0.20.3\lib\xa
lan-2.0.0.jar;c:\fop-0.20
.3\lib\xerces-1.2.3.jar;c:\fop-0.20.3\lib\avalon-framework-4.0.jar;c:\fop-0.
20.3
\lib\logkit-1.0.jar;c:\fop-0.20.3\lib\jimi-1.0.jar org.apache.fop.apps.Fop
-c c:
\fop-0.20.3\conf\userconfig.xml sample_getting_started.fo
sample_getting_started
.pdf
[INFO]: FOP 0.20.3
[INFO]: building formatting object tree
[INFO]: [1]
[ERROR]: defaulted font to any,normal,normal
[ERROR]: unknown font Helvetica-Light,normal,lighter so defaulted font to
any
[ERROR]: defaulted font to any,normal,normal
[ERROR]: unknown font Helvetica-Light,normal,lighter so defaulted font to
any
[ERROR]: defaulted font to any,normal,normal
[ERROR]: unknown font Helvetica-Light,normal,lighter so defaulted font to
any
[ERROR]: defaulted font to any,normal,normal
[ERROR]: unknown font Helvetica-Light,normal,lighter so defaulted font to
any
[ERROR]: defaulted font to any,normal,normal
[ERROR]: unknown font Helvetica-Light,normal,lighter so defaulted font to
any
[ERROR]: defaulted font to any,normal,normal
[ERROR]: unknown font Helvetica-Light,normal,lighter so defaulted font to
any
[ERROR]: defaulted font to any,normal,normal
[ERROR]: unknown font Helvetica-Light,normal,lighter so defaulted font to
any
[ERROR]: defaulted font to any,normal,normal
[ERROR]: unknown font Helvetica-Light,normal,lighter so defaulted font to
any
[INFO]: Parsing of document complete, stopping renderer
Am I doing something wrong or is this not supported?
Re: Embedding Type I fonts
Posted by Jeremias Maerki <je...@outline.ch>.
Yeah, you're using font-weight="lighter", but only "normal" (see your
<fonts> element) is registered.
On 26.03.2002 20:02:44 Levy, Alane wrote:
> I am having trouble getting FOP to recognize a Type I font
> (Helvetica-Light).
>
> I followed the instructions on the web page
> (http://xml.apache.org/fop/fonts.html) to generate the attached font metrics
> file from the hvl_____.pfm file from Adobe.
>
> <<hvl_____.xml>>
> I added the following element definition to the conf/userconfig.xml file
> inside the <fonts> element:
> <font metrics-file="hvl_____.xml" kerning="yes">
> <font-triplet name="Helvetica-Light" style="normal"
> weight="normal"/>
> </font>
>
> I also tried the above with an absolute path to the metrics file, but it
> made no difference.
>
> When I run FOP with the following command line:
> >fop -c c:\fop-0.20.3\conf\userconfig.xml sample_getting_started.fo
> sample_getting_started.pdf
>
> the following errors result:
> >java -cp
> c:\fop-0.20.3\build\fop.jar;c:\fop-0.20.3\lib\batik.jar;c:\fop-0.20.3\lib\xa
> lan-2.0.0.jar;c:\fop-0.20
> .3\lib\xerces-1.2.3.jar;c:\fop-0.20.3\lib\avalon-framework-4.0.jar;c:\fop-0.
> 20.3
> \lib\logkit-1.0.jar;c:\fop-0.20.3\lib\jimi-1.0.jar org.apache.fop.apps.Fop
> -c c:
> \fop-0.20.3\conf\userconfig.xml sample_getting_started.fo
> sample_getting_started
> .pdf
> [INFO]: FOP 0.20.3
> [INFO]: building formatting object tree
> [INFO]: [1]
> [ERROR]: defaulted font to any,normal,normal
> [ERROR]: unknown font Helvetica-Light,normal,lighter so defaulted font to
> any
> [ERROR]: defaulted font to any,normal,normal
> [ERROR]: unknown font Helvetica-Light,normal,lighter so defaulted font to
> any
> [ERROR]: defaulted font to any,normal,normal
> [ERROR]: unknown font Helvetica-Light,normal,lighter so defaulted font to
> any
> [ERROR]: defaulted font to any,normal,normal
> [ERROR]: unknown font Helvetica-Light,normal,lighter so defaulted font to
> any
> [ERROR]: defaulted font to any,normal,normal
> [ERROR]: unknown font Helvetica-Light,normal,lighter so defaulted font to
> any
> [ERROR]: defaulted font to any,normal,normal
> [ERROR]: unknown font Helvetica-Light,normal,lighter so defaulted font to
> any
> [ERROR]: defaulted font to any,normal,normal
> [ERROR]: unknown font Helvetica-Light,normal,lighter so defaulted font to
> any
> [ERROR]: defaulted font to any,normal,normal
> [ERROR]: unknown font Helvetica-Light,normal,lighter so defaulted font to
> any
> [INFO]: Parsing of document complete, stopping renderer
>
> Am I doing something wrong or is this not supported?
Cheers,
Jeremias Märki
mailto:jeremias.maerki@outline.ch
OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - 6002 Luzern
Fon +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch