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 tr...@pg.ebx.com on 2001/04/10 11:02:39 UTC

Rebuild fop again

Hello, can anybody tell me how to solve this problem:

I'm using Fop-0.18.1-DEV with xerces-j-1.3.1 and windows98, jdk1.3,
acroreader4.05

after create the font metrics file, i add the fonts section in
conf/userconfig.xml like following:

<font metrics-file="C:\xslt\Fop-0.18.1-DEV\src\codegen\cyberbit.xml"
embed-file="C:\WINDOWS\FONTS\Cyberbit.ttf" kerning="yes">
<font-triplet name="Cyberbit" style="normal" weight="normal"/>
</font>

In build.xml file, i add:

<property name="cyberbit.xml" value="${build.codegen}/cyberbit.xml"/> and

<xslt infile="${cyberbit.xml}" xsltfile="${ttffontfile.xsl}" mergefile="
${charlist.xml}"
        outfile="${build.src}/
${replacestring}/render/pdf/fonts/BitstreamCyberbit.java" smart="yes"/>

In FontSetup file,

fontInfo.addMetrics("F16", new BitstreamCyberbit());  &
fontInfo.addFontProperties("F16", "BitstreamCyberbit", "normal",
                   "normal");

and when i rebuild the fop, the result are:

    [javac] C:
\xslt\Fop-0.18.1-DEV\build\src\org\apache\fop\render\pdf\fonts\Bit
streamCyberbit.java:15: Identifier expected.
    [javac] public class  extends Font implements FontDescriptor {
    [javac]             ^
    [javac] C:
\xslt\Fop-0.18.1-DEV\build\src\org\apache\fop\render\pdf\fonts\Bit
streamCyberbit.java:15: Identifier expected.
    [javac] public class  extends Font implements FontDescriptor {
    [javac]             ^
    [javac] error: File C:
\xslt\Fop-0.18.1-DEV\build\src\org\apache\fop\render\p
df\fonts\BitstreamCyberbit.java does not contain type
org.apache.fop.render.pdf.
fonts.BitstreamCyberbit as expected. Please adjust the class path so that
the fi
le does not appear in the package org\apache\fop\render\pdf\fonts.
    [javac] C:
\xslt\Fop-0.18.1-DEV\build\src\org\apache\fop\render\pdf\FontSetup
.java:102: Class org.apache.fop.render.pdf.fonts.BitstreamCyberbit not
found.
    [javac]     fontInfo.addMetrics("F16", new BitstreamCyberbit());
    [javac]                                    ^
    [javac] 5 errors

BUILD FAILED

C:\xslt\Fop-0.18.1-DEV\build.xml:534: Compile failed, messages should have
been
provided.

I didn't change anything with the coding in java file, and i just adding
the things that should be adding in the java program.

so, can anyone tell me the mistake?

thank you



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: text-decoration in block

Posted by Christian Geisert <Ch...@isu-gmbh.de>.
Hoang Nam wrote:
> 
> Hello all,
> 
> I have put the property text-decoration="underline" in block level and it
> did not work .
> It works only in inline object.
> 
> Could sombody tell me what I am doing wrong ? Could we have the property
> text-decoration in a block ? Or it is not implemented yet in block in FOP ?

>From the CR:
"If the property is specified for a block-level element, it affects all
inline-level descendants of the element."

So it should work but is not implemented yet. Text-decoration only works with
inline at the moment.

Workarround:
<fo:block>
<fo:inline text-decoration="underline">
your text...
</fo:inline>
</fo:block>

> Thanks alot !
> 
> Nam

Christian

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


text-decoration in block

Posted by Hoang Nam <nn...@yahoo.fr>.
Hello all,

I have put the property text-decoration="underline" in block level and it
did not work .
It works only in inline object.

Could sombody tell me what I am doing wrong ? Could we have the property
text-decoration in a block ? Or it is not implemented yet in block in FOP ?

Thanks alot !

Nam


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Rebuild fop again

Posted by "Seshadri G.K." <se...@mindfiresolutions.com>.
The latest documentation clearly specifies how to embed fonts. You are
changing build.xml and the font-metrics file, that is not needed, and do not
rebuild fop, just run it with -c conf/userconfig option.

sesha





----- Original Message -----
From: <tr...@pg.ebx.com>
To: <fo...@xml.apache.org>
Sent: Tuesday, April 10, 2001 5:02 PM
Subject: Rebuild fop again


> Hello, can anybody tell me how to solve this problem:
>
> I'm using Fop-0.18.1-DEV with xerces-j-1.3.1 and windows98, jdk1.3,
> acroreader4.05
>
> after create the font metrics file, i add the fonts section in
> conf/userconfig.xml like following:
>
> <font metrics-file="C:\xslt\Fop-0.18.1-DEV\src\codegen\cyberbit.xml"
> embed-file="C:\WINDOWS\FONTS\Cyberbit.ttf" kerning="yes">
> <font-triplet name="Cyberbit" style="normal" weight="normal"/>
> </font>
>
> In build.xml file, i add:
>
> <property name="cyberbit.xml" value="${build.codegen}/cyberbit.xml"/> and
>
> <xslt infile="${cyberbit.xml}" xsltfile="${ttffontfile.xsl}" mergefile="
> ${charlist.xml}"
>         outfile="${build.src}/
> ${replacestring}/render/pdf/fonts/BitstreamCyberbit.java" smart="yes"/>
>
> In FontSetup file,
>
> fontInfo.addMetrics("F16", new BitstreamCyberbit());  &
> fontInfo.addFontProperties("F16", "BitstreamCyberbit", "normal",
>                    "normal");
>
> and when i rebuild the fop, the result are:
>
>     [javac] C:
> \xslt\Fop-0.18.1-DEV\build\src\org\apache\fop\render\pdf\fonts\Bit
> streamCyberbit.java:15: Identifier expected.
>     [javac] public class  extends Font implements FontDescriptor {
>     [javac]             ^
>     [javac] C:
> \xslt\Fop-0.18.1-DEV\build\src\org\apache\fop\render\pdf\fonts\Bit
> streamCyberbit.java:15: Identifier expected.
>     [javac] public class  extends Font implements FontDescriptor {
>     [javac]             ^
>     [javac] error: File C:
> \xslt\Fop-0.18.1-DEV\build\src\org\apache\fop\render\p
> df\fonts\BitstreamCyberbit.java does not contain type
> org.apache.fop.render.pdf.
> fonts.BitstreamCyberbit as expected. Please adjust the class path so that
> the fi
> le does not appear in the package org\apache\fop\render\pdf\fonts.
>     [javac] C:
> \xslt\Fop-0.18.1-DEV\build\src\org\apache\fop\render\pdf\FontSetup
> .java:102: Class org.apache.fop.render.pdf.fonts.BitstreamCyberbit not
> found.
>     [javac]     fontInfo.addMetrics("F16", new BitstreamCyberbit());
>     [javac]                                    ^
>     [javac] 5 errors
>
> BUILD FAILED
>
> C:\xslt\Fop-0.18.1-DEV\build.xml:534: Compile failed, messages should have
> been
> provided.
>
> I didn't change anything with the coding in java file, and i just adding
> the things that should be adding in the java program.
>
> so, can anyone tell me the mistake?
>
> thank you
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org