Error on Webpage

2007-04-14 Thread Thomas Zastrow
Hello,

on the webpage http://xmlgraphics.apache.org/fop/0.93/fonts.html there
is an error in the section TrueType Font Metrics: the jar-libs have to
be separated with a : and not wit a ;

I'm not sure if this is Windows-specific, but on Linux the : separates
the libs :-)

Best,

Tom

-- 

http://www.thomas-zastrow.de

German Forum - DTP under Linux:

http://www.opendtp.de



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with custom fonts

2007-04-14 Thread Thomas Zastrow
Hi there,

I try to use another TTF font with the FOP. As described here:
http://xmlgraphics.apache.org/fop/0.93/fonts.html, I build the metric
file which seems to have worked without problems (LinLibertine.xml).
Now, I added the following to the font-section of conf/fop.xconf:

font metrics-url=LinLibertine.xml kerning=yes
embed-url=LinLibertineU-Re-2.2.5.ttf
  font-triplet name=LinLibertine style=normal
weight=normal/ 
/font

The files LinLibertine.xml and LinLibertineU-Re-2.2.5.ttf are in the
root-directory of the FOP (version 0.93). The base-tag in the
config-file is untouched, it is still   base./base

But when trying to use the font LinLibertine, I got the error:

14.04.2007 17:36:15 org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNUNG: Font 'LinLibertine,normal,400' not found. Substituting with
'any,normal,400'.
Process ended with exit code: 0

I think, I have to put the fonts somewhere else?

Thanks!

Tom


-- 

http://www.thomas-zastrow.de

German Forum - DTP under Linux:

http://www.opendtp.de



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Which colors?

2007-04-14 Thread Thomas Zastrow
A lot of questions today ;-)

Is there a list with the predefined color names like red, blue and
so on?

Thank you!

Best,

Tom

-- 

http://www.thomas-zastrow.de

German Forum - DTP under Linux:

http://www.opendtp.de



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error on Webpage

2007-04-14 Thread Andreas L Delmelle

On Apr 14, 2007, at 17:25, Thomas Zastrow wrote:

Hi Tom,


on the webpage http://xmlgraphics.apache.org/fop/0.93/fonts.html there
is an error in the section TrueType Font Metrics: the jar-libs  
have to

be separated with a : and not wit a ;

I'm not sure if this is Windows-specific, but on Linux the : separates
the libs :-)


That's indeed Windows-specific. Thanks for pointing this out, we'll  
see if we can clarify it.


Cheers,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with custom fonts

2007-04-14 Thread Andreas L Delmelle

On Apr 14, 2007, at 17:41, Thomas Zastrow wrote:


snip /
The files LinLibertine.xml and LinLibertineU-Re-2.2.5.ttf are in the
root-directory of the FOP (version 0.93). The base-tag in the
config-file is untouched, it is still   base./base


Keep in mind that they are influenced by font-base. I /think/ both  
of them. At least, I hope so... :/



Cheers,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Which colors?

2007-04-14 Thread Andreas L Delmelle

On Apr 14, 2007, at 19:10, Thomas Zastrow wrote:


A lot of questions today ;-)

Is there a list with the predefined color names like red, blue and
so on?


I guess it's available somewhere... In the FOP source, you can find  
them in org.apache.fop.util.ColorUtil.initializeColorMap()


HTH!

Cheers,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with custom fonts

2007-04-14 Thread Thomas Zastrow
Andreas L Delmelle wrote:
 On Apr 14, 2007, at 17:41, Thomas Zastrow wrote:

 snip /
 The files LinLibertine.xml and LinLibertineU-Re-2.2.5.ttf are in the
 root-directory of the FOP (version 0.93). The base-tag in the
 config-file is untouched, it is still   base./base

 Keep in mind that they are influenced by font-base. I /think/ both
 of them. At least, I hope so... :/

OK, I added font-base./font-base to the fop.xconf. But the result is
the same ... btw., I'm not sure which directory is meant with .? Is it
the conf-directory? Or the root-directory? I copied both the metric xml
file and the ttf-file also to conf, but FOP still can't find them.

Is conf/fop.xconf read by default or have I to specify it as config-file?

Best,

Tom



-- 

http://www.thomas-zastrow.de

German Forum - DTP under Linux:

http://www.opendtp.de



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with custom fonts

2007-04-14 Thread Andreas L Delmelle

On Apr 14, 2007, at 20:55, Thomas Zastrow wrote:


Andreas L Delmelle wrote:

On Apr 14, 2007, at 17:41, Thomas Zastrow wrote:


snip /
The files LinLibertine.xml and LinLibertineU-Re-2.2.5.ttf are in the
root-directory of the FOP (version 0.93). The base-tag in the
config-file is untouched, it is still   base./base


Keep in mind that they are influenced by font-base. I /think/ both
of them. At least, I hope so... :/

OK, I added font-base./font-base to the fop.xconf. But the  
result is

the same ... btw., I'm not sure which directory is meant with .?


Errm, if I'm correct then the . is to be interpreted as relative to  
the source document...
In any case, now that you mention it, it does seem to lean towards  
bad practice to use a relative url as base-url for anything... :/


Is it the conf-directory? Or the root-directory? I copied both the  
metric xml

file and the ttf-file also to conf, but FOP still can't find them.

Is conf/fop.xconf read by default or have I to specify it as config- 
file?


You have to specify it. The fop.xconf file contains the settings that  
are used by FOP if no config file is specified, but the file itself  
is not used unless you tell FOP to use it. If you leave it unchanged,  
and start FOP with -c conf/fop.xconf, then the result is the same  
as if no config file has been used.


Cheers,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Which colors?

2007-04-14 Thread Thomas Zastrow
Andreas L Delmelle wrote:
 On Apr 14, 2007, at 19:10, Thomas Zastrow wrote:

 A lot of questions today ;-)

 Is there a list with the predefined color names like red, blue and
 so on?

 I guess it's available somewhere... In the FOP source, you can find
 them in org.apache.fop.util.ColorUtil.initializeColorMap()

Thank you very much. I build a PDF file with an overview of all the colors:

http://www.thomas-zastrow.de/st/examples.php

(the entry Predefined colors in the Apache FOP.)

Best,

Tom

-- 

http://www.thomas-zastrow.de

German Forum - DTP under Linux:

http://www.opendtp.de



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with custom fonts

2007-04-14 Thread Thomas Zastrow
Andreas L Delmelle wrote:
 On Apr 14, 2007, at 20:55, Thomas Zastrow wrote:

 Andreas L Delmelle wrote:
 On Apr 14, 2007, at 17:41, Thomas Zastrow wrote:

 snip /
 The files LinLibertine.xml and LinLibertineU-Re-2.2.5.ttf are in the
 root-directory of the FOP (version 0.93). The base-tag in the
 config-file is untouched, it is still   base./base

 Keep in mind that they are influenced by font-base. I /think/ both
 of them. At least, I hope so... :/

 OK, I added font-base./font-base to the fop.xconf. But the result is
 the same ... btw., I'm not sure which directory is meant with .?

 Errm, if I'm correct then the . is to be interpreted as relative to
 the source document...
 In any case, now that you mention it, it does seem to lean towards bad
 practice to use a relative url as base-url for anything... :/

 Is it the conf-directory? Or the root-directory? I copied both the
 metric xml
 file and the ttf-file also to conf, but FOP still can't find them.

 Is conf/fop.xconf read by default or have I to specify it as
 config-file?

 You have to specify it. The fop.xconf file contains the settings that
 are used by FOP if no config file is specified, but the file itself is
 not used unless you tell FOP to use it. If you leave it unchanged, and
 start FOP with -c conf/fop.xconf, then the result is the same as if
 no config file has been used.

Andreas, again, thank you :-)

I solved the problem: I used absolute paths, which is - in my oppinion
- just a workaround :-)

But now it works. Take a look at the Using LinuxLibertine with the
Apache FOP on my examples page:

http://www.thomas-zastrow.de/st/examples.php

Best,

Tom



-- 

http://www.thomas-zastrow.de

German Forum - DTP under Linux:

http://www.opendtp.de



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with custom fonts

2007-04-14 Thread Andreas L Delmelle

On Apr 14, 2007, at 23:12, Thomas Zastrow wrote:


Andreas L Delmelle wrote:
In any case, now that you mention it, it does seem to lean towards  
bad

practice to use a relative url as base-url for anything... :/

snip /



I solved the problem: I used absolute paths, which is - in my  
oppinion

- just a workaround :-)


Note that I don't mean that hardcoding absolute urls in (inherently  
relocatable) config files is such a good idea, but the fact alone  
that it made you ask the question what the . points to seems to  
demonstrate that it is not in the interest of clarity to do so. :-)



Cheers,

Andreas

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]