Re: fopFactory setFontBaseURL

2006-09-10 Thread Manuel Mall
On Sunday 10 September 2006 19:12, Shue-Yen Tsai wrote:
 Hi:

 I embed FOP 0.92 to my program. I can't get the font
 to work. I put the

 fopFactory.setFontBaseURL(file:///C:/fonts);

Sam

please try 
fopFactory.setFontBaseURL(file:///C:/fonts/);
and check if that fixes it.

Manuel

 in the program and put my ttf files, metric files
 under the folder c:/fonts. I still got error on
 finding fonts. Do I have to create userconfig.xml in
 this folder or something else?

 Sam


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



Re: fopFactory setFontBaseURL

2006-09-10 Thread Sam Tsai

Thanks. I tried but still not working. 
Other than the TTF and Metric file what else should be in the folder to make
it working?



Manuel Mall-2 wrote:
 
 On Sunday 10 September 2006 19:12, Shue-Yen Tsai wrote:
 Hi:

 I embed FOP 0.92 to my program. I can't get the font
 to work. I put the

 fopFactory.setFontBaseURL(file:///C:/fonts);
 
 Sam
 
 please try 
   fopFactory.setFontBaseURL(file:///C:/fonts/);
 and check if that fixes it.
 
 Manuel

 in the program and put my ttf files, metric files
 under the folder c:/fonts. I still got error on
 finding fonts. Do I have to create userconfig.xml in
 this folder or something else?

 Sam

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

-- 
View this message in context: 
http://www.nabble.com/fopFactory-setFontBaseURL-tf2247370.html#a6233141
Sent from the FOP - Users forum at Nabble.com.


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



Re: fopFactory setFontBaseURL

2006-09-10 Thread Manuel Mall
On Sunday 10 September 2006 19:58, Sam Tsai wrote:
 Thanks. I tried but still not working.
 Other than the TTF and Metric file what else should be in the folder
 to make it working?

What is the exact error message(s) FOP is producing?

Does that give any clue about what might be wrong?

Manuel

 Manuel Mall-2 wrote:
  On Sunday 10 September 2006 19:12, Shue-Yen Tsai wrote:
  Hi:
 
  I embed FOP 0.92 to my program. I can't get the font
  to work. I put the
 
  fopFactory.setFontBaseURL(file:///C:/fonts);
 
  Sam
 
  please try
  fopFactory.setFontBaseURL(file:///C:/fonts/);
  and check if that fixes it.
 
  Manuel
 
  in the program and put my ttf files, metric files
  under the folder c:/fonts. I still got error on
  finding fonts. Do I have to create userconfig.xml in
  this folder or something else?
 
  Sam
 
  ---
 -- To unsubscribe, e-mail:
  [EMAIL PROTECTED] For additional
  commands, e-mail: [EMAIL PROTECTED]

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



Re: fopFactory setFontBaseURL

2006-09-10 Thread Sam Tsai

Manuel:

The message is I got from log4J

Font 'Arial,normal,400' not found. Substituting with default font. I also
attached the Arial.xml metric file. 

Sam

http://www.nabble.com/user-files/235939/Arial.xml Arial.xml 

Manuel Mall-2 wrote:
 
 On Sunday 10 September 2006 19:58, Sam Tsai wrote:
 Thanks. I tried but still not working.
 Other than the TTF and Metric file what else should be in the folder
 to make it working?
 
 What is the exact error message(s) FOP is producing?
 
 Does that give any clue about what might be wrong?
 
 Manuel

 Manuel Mall-2 wrote:
  On Sunday 10 September 2006 19:12, Shue-Yen Tsai wrote:
  Hi:
 
  I embed FOP 0.92 to my program. I can't get the font
  to work. I put the
 
  fopFactory.setFontBaseURL(file:///C:/fonts);
 
  Sam
 
  please try
 fopFactory.setFontBaseURL(file:///C:/fonts/);
  and check if that fixes it.
 
  Manuel
 
  in the program and put my ttf files, metric files
  under the folder c:/fonts. I still got error on
  finding fonts. Do I have to create userconfig.xml in
  this folder or something else?
 
  Sam
 
  ---
 -- To unsubscribe, e-mail:
  [EMAIL PROTECTED] For additional
  commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/fopFactory-setFontBaseURL-tf2247370.html#a6233269
Sent from the FOP - Users forum at Nabble.com.


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



Re: fopFactory setFontBaseURL

2006-09-10 Thread Sam Tsai

I put this line:

fopFactory.setUserConfig(new File(C:/Temp/userconfig.xml));

and the config file content is:

?xml version=1.0 encoding=UTF-8?

!-- New document created at Sun Sep 10 05:56:26 CDT 2006 --

configuration
font metrics-url=file:///C:/fonts/Arial/Arial.xml kerning=yes
embed-url=file:///C:/fonts/Arial/arial.ttf
  font-triplet name=Arial style=normal weight=normal/
  font-triplet name=ArialMT style=normal weight=normal/
/font 
/configuration


Sam


Jeremias Maerki-2 wrote:
 
 Just a hunch:
 Make sure you call setFontBaseURL() after you specify a userconfig.xml 
 (if any) and before you create an FOUserAgent or a Fop instance.
 
 On 10.09.2006 13:12:28 Shue-Yen Tsai wrote:
 Hi:
 
 I embed FOP 0.92 to my program. I can't get the font
 to work. I put the 
 
 fopFactory.setFontBaseURL(file:///C:/fonts);
 
 in the program and put my ttf files, metric files
 under the folder c:/fonts. I still got error on
 finding fonts. Do I have to create userconfig.xml in
 this folder or something else?
 
 
 Jeremias Maerki
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/fopFactory-setFontBaseURL-tf2247370.html#a6233414
Sent from the FOP - Users forum at Nabble.com.


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



Re: fopFactory setFontBaseURL

2006-09-10 Thread Jeremias Maerki
That's the layout from FOP 0.20.5. You said you're using FOP 0.92beta,
so you have to use that configuration layout. It has changed since
0.20.5. Please take conf/fop.xconf as a template!

See also: http://xmlgraphics.apache.org/fop/0.92/configuration.html

On 10.09.2006 14:34:42 Sam Tsai wrote:
 
 I put this line:
 
 fopFactory.setUserConfig(new File(C:/Temp/userconfig.xml));
 
 and the config file content is:
 
 ?xml version=1.0 encoding=UTF-8?
 
 !-- New document created at Sun Sep 10 05:56:26 CDT 2006 --
 
 configuration
   font metrics-url=file:///C:/fonts/Arial/Arial.xml kerning=yes
 embed-url=file:///C:/fonts/Arial/arial.ttf
   font-triplet name=Arial style=normal weight=normal/
   font-triplet name=ArialMT style=normal weight=normal/
 /font   
 /configuration
 
 
 Sam
 
 
 Jeremias Maerki-2 wrote:
  
  Just a hunch:
  Make sure you call setFontBaseURL() after you specify a userconfig.xml 
  (if any) and before you create an FOUserAgent or a Fop instance.
  
  On 10.09.2006 13:12:28 Shue-Yen Tsai wrote:
  Hi:
  
  I embed FOP 0.92 to my program. I can't get the font
  to work. I put the 
  
  fopFactory.setFontBaseURL(file:///C:/fonts);
  
  in the program and put my ttf files, metric files
  under the folder c:/fonts. I still got error on
  finding fonts. Do I have to create userconfig.xml in
  this folder or something else?
  
  
  Jeremias Maerki


Jeremias Maerki


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



Re: fopFactory setFontBaseURL

2006-09-10 Thread Sam Tsai


Thanks a lot.

I got it working. You are right. I copied the configuration file came with
0.92beta and modify the font entry. Now it worked well.

Sam

Jeremias Maerki-2 wrote:
 
 That's the layout from FOP 0.20.5. You said you're using FOP 0.92beta,
 so you have to use that configuration layout. It has changed since
 0.20.5. Please take conf/fop.xconf as a template!
 
 See also: http://xmlgraphics.apache.org/fop/0.92/configuration.html
 
 On 10.09.2006 14:34:42 Sam Tsai wrote:
 
 I put this line:
 
 fopFactory.setUserConfig(new File(C:/Temp/userconfig.xml));
 
 and the config file content is:
 
 ?xml version=1.0 encoding=UTF-8?
 
 !-- New document created at Sun Sep 10 05:56:26 CDT 2006 --
 
 configuration
  font metrics-url=file:///C:/fonts/Arial/Arial.xml kerning=yes
 embed-url=file:///C:/fonts/Arial/arial.ttf
   font-triplet name=Arial style=normal weight=normal/
   font-triplet name=ArialMT style=normal weight=normal/
 /font  
 /configuration
 
 
 Sam
 
 
 Jeremias Maerki-2 wrote:
  
  Just a hunch:
  Make sure you call setFontBaseURL() after you specify a userconfig.xml 
  (if any) and before you create an FOUserAgent or a Fop instance.
  
  On 10.09.2006 13:12:28 Shue-Yen Tsai wrote:
  Hi:
  
  I embed FOP 0.92 to my program. I can't get the font
  to work. I put the 
  
  fopFactory.setFontBaseURL(file:///C:/fonts);
  
  in the program and put my ttf files, metric files
  under the folder c:/fonts. I still got error on
  finding fonts. Do I have to create userconfig.xml in
  this folder or something else?
  
  
  Jeremias Maerki
 
 
 Jeremias Maerki
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/fopFactory-setFontBaseURL-tf2247370.html#a6233515
Sent from the FOP - Users forum at Nabble.com.


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



Re: fopFactory setFontBaseURL

2006-09-10 Thread Sam Tsai

Jeremias:

I have an additional question 

So the setFontURL alone won't do the job. You still need the confiuration
file. Is this correct statement?

Sam


Jeremias Maerki-2 wrote:
 
 That's the layout from FOP 0.20.5. You said you're using FOP 0.92beta,
 so you have to use that configuration layout. It has changed since
 0.20.5. Please take conf/fop.xconf as a template!
 
 See also: http://xmlgraphics.apache.org/fop/0.92/configuration.html
 
 On 10.09.2006 14:34:42 Sam Tsai wrote:
 
 I put this line:
 
 fopFactory.setUserConfig(new File(C:/Temp/userconfig.xml));
 
 and the config file content is:
 
 ?xml version=1.0 encoding=UTF-8?
 
 !-- New document created at Sun Sep 10 05:56:26 CDT 2006 --
 
 configuration
  font metrics-url=file:///C:/fonts/Arial/Arial.xml kerning=yes
 embed-url=file:///C:/fonts/Arial/arial.ttf
   font-triplet name=Arial style=normal weight=normal/
   font-triplet name=ArialMT style=normal weight=normal/
 /font  
 /configuration
 
 
 Sam
 
 
 Jeremias Maerki-2 wrote:
  
  Just a hunch:
  Make sure you call setFontBaseURL() after you specify a userconfig.xml 
  (if any) and before you create an FOUserAgent or a Fop instance.
  
  On 10.09.2006 13:12:28 Shue-Yen Tsai wrote:
  Hi:
  
  I embed FOP 0.92 to my program. I can't get the font
  to work. I put the 
  
  fopFactory.setFontBaseURL(file:///C:/fonts);
  
  in the program and put my ttf files, metric files
  under the folder c:/fonts. I still got error on
  finding fonts. Do I have to create userconfig.xml in
  this folder or something else?
  
  
  Jeremias Maerki
 
 
 Jeremias Maerki
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/fopFactory-setFontBaseURL-tf2247370.html#a6233526
Sent from the FOP - Users forum at Nabble.com.


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



Re: fopFactory setFontBaseURL

2006-09-10 Thread Jeremias Maerki
setFontBaseURL() alone won't configure all fonts. This base URL is only
used to resolve relative URLs used in the font configuration. Something
is in the works to change the whole font subsystem of FOP. When that
comes we may have a system where you can simply specify a number of
directories and all fonts found there will automatically be used without
the need to run PFMReader or TTFReader. But that lies in the future.

On 10.09.2006 14:49:39 Sam Tsai wrote:
 
 Jeremias:
 
 I have an additional question 
 
 So the setFontURL alone won't do the job. You still need the confiuration
 file. Is this correct statement?
 
 Sam
 
 
 Jeremias Maerki-2 wrote:
  
  That's the layout from FOP 0.20.5. You said you're using FOP 0.92beta,
  so you have to use that configuration layout. It has changed since
  0.20.5. Please take conf/fop.xconf as a template!
  
  See also: http://xmlgraphics.apache.org/fop/0.92/configuration.html
  
  On 10.09.2006 14:34:42 Sam Tsai wrote:
  
  I put this line:
  
  fopFactory.setUserConfig(new File(C:/Temp/userconfig.xml));
  
  and the config file content is:
  
  ?xml version=1.0 encoding=UTF-8?
  
  !-- New document created at Sun Sep 10 05:56:26 CDT 2006 --
  
  configuration
 font metrics-url=file:///C:/fonts/Arial/Arial.xml kerning=yes
  embed-url=file:///C:/fonts/Arial/arial.ttf
font-triplet name=Arial style=normal weight=normal/
font-triplet name=ArialMT style=normal weight=normal/
  /font
  /configuration
  
  
  Sam
  
  
  Jeremias Maerki-2 wrote:
   
   Just a hunch:
   Make sure you call setFontBaseURL() after you specify a userconfig.xml 
   (if any) and before you create an FOUserAgent or a Fop instance.
   
   On 10.09.2006 13:12:28 Shue-Yen Tsai wrote:
   Hi:
   
   I embed FOP 0.92 to my program. I can't get the font
   to work. I put the 
   
   fopFactory.setFontBaseURL(file:///C:/fonts);
   
   in the program and put my ttf files, metric files
   under the folder c:/fonts. I still got error on
   finding fonts. Do I have to create userconfig.xml in
   this folder or something else?


Jeremias Maerki


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