Fonts in FOP

2005-02-04 Thread Nuno.Canais
Hello,
I need to include a new font in FOP.
I already generate a new xml file of the font comic.ttf
(ttfcomic.xml), and in the userconfig.xml added the new font.

font metrics-file=ttfcomic.xml kerning=yes
embed-file=c:\windows\fonts\comic.ttf
   font-triplet name=ComicSansMS style=normal weight=normal/
/font

To recompile the fop.jar, what is necessary to configure?
Is it necessary anything else in the build.xml of FOP?
And where should I put the new ttfcomic.xml file for the new font? Is
it in /src/codegen?

Next in the XSL-FO, how can I refer the new font?
The font name should be ComicSansMS like refer above or the name of
the font file?

font-style=ComicSansMS 

Thanks in advance.
Best regards.

Nuno Canais

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



Re: Fonts in FOP

2005-02-04 Thread Manoj_Nair




Nuno

I am also working on a similar issue which involves Japanese fonts but dont
have it in a working condition. These are the points I have learned in
process.

1) Open the ttfcomic.xml and see whats the name given in the font-name
tag? This name should match the
  ComicSansMS as you have given in font-triplet tag in the userconfig.xml

2) I would advice for time being to hardcode the complete path to
ttfcomic.xml as font metrics-file=c:\dir\ttfcomic.xml just like you did
for the embed-file

3) No need to change build.xml

4) No need to recompile fop.jar

5) You need to load the fonts by invoking the configuration before your
parse XML -- PDF. How are you doing the xml to pdf ? I am using the
XSLTInputHandler(xml,xsl) in a servlet or are u running it from command
prompt ?

6) I came to know today that I need to manually change the XSL file ( which
i had created using XMLSPY) to refer to the font explicitly using the
font-family tag. (courtsey of Lou )

fo:block font-family=ComicSansMS font-weight=bold
padding-bottom=1mm
#x7ecf;#x8425;#x5355;#x4f4d;
/fo:block

Let me know
Manoj





   
  [EMAIL PROTECTED]

  wareag.com  To:   [EMAIL PROTECTED]
 
   cc:  
   
  2005/02/04 08:32 Subject:  Fonts in FOP   
   
  Please respond to 
   
  fop-user  
   

   

   




Hello,
I need to include a new font in FOP.
I already generate a new xml file of the font comic.ttf
(ttfcomic.xml), and in the userconfig.xml added the new font.

font metrics-file=ttfcomic.xml kerning=yes
embed-file=c:\windows\fonts\comic.ttf
   font-triplet name=ComicSansMS style=normal weight=normal/
/font

To recompile the fop.jar, what is necessary to configure?
Is it necessary anything else in the build.xml of FOP?
And where should I put the new ttfcomic.xml file for the new font? Is
it in /src/codegen?

Next in the XSL-FO, how can I refer the new font?
The font name should be ComicSansMS like refer above or the name of
the font file?

font-style=ComicSansMS

Thanks in advance.
Best regards.

Nuno Canais

-
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: Fonts in FOP

2005-02-04 Thread Nuno.Canais
Hi Manoj,
Thanks for your help.
I really need to re-build fop.jar, because my web application uses it
standalone and I don't have code access.
I think I really should configure something in the build.xml of FOP.
Something like:
property name=ttfcomic.xml value=${build.codegen}/ttfcomic.xml/

I need to know, what and how do I need to configure?

Nuno




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 4 de Fevereiro de 2005 17:48
To: [EMAIL PROTECTED]
Subject: Re: Fonts in FOP

Nuno

I am also working on a similar issue which involves Japanese fonts but
dont
have it in a working condition. These are the points I have learned in
process.

1) Open the ttfcomic.xml and see whats the name given in the font-name
tag? This name should match the
  ComicSansMS as you have given in font-triplet tag in the
userconfig.xml

2) I would advice for time being to hardcode the complete path to
ttfcomic.xml as font metrics-file=c:\dir\ttfcomic.xml just like you
did
for the embed-file

3) No need to change build.xml

4) No need to recompile fop.jar

5) You need to load the fonts by invoking the configuration before your
parse XML -- PDF. How are you doing the xml to pdf ? I am using the
XSLTInputHandler(xml,xsl) in a servlet or are u running it from command
prompt ?

6) I came to know today that I need to manually change the XSL file (
which
i had created using XMLSPY) to refer to the font explicitly using the
font-family tag. (courtsey of Lou )

fo:block font-family=ComicSansMS font-weight=bold
padding-bottom=1mm
#x7ecf;#x8425;#x5355;#x4f4d;
/fo:block

Let me know
Manoj




 

  [EMAIL PROTECTED]

  wareag.com  To:
[EMAIL PROTECTED]

   cc:

  2005/02/04 08:32 Subject:  Fonts in FOP

  Please respond to

  fop-user

 

 





Hello,
I need to include a new font in FOP.
I already generate a new xml file of the font comic.ttf
(ttfcomic.xml), and in the userconfig.xml added the new font.

font metrics-file=ttfcomic.xml kerning=yes
embed-file=c:\windows\fonts\comic.ttf
   font-triplet name=ComicSansMS style=normal weight=normal/
/font

To recompile the fop.jar, what is necessary to configure?
Is it necessary anything else in the build.xml of FOP?
And where should I put the new ttfcomic.xml file for the new font? Is
it in /src/codegen?

Next in the XSL-FO, how can I refer the new font?
The font name should be ComicSansMS like refer above or the name of
the font file?

font-style=ComicSansMS

Thanks in advance.
Best regards.

Nuno Canais

-
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]


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



RE: Fonts in FOP

2005-02-04 Thread Manoj_Nair
Nuno

So who is invoking FOP ? Dont you write code to invoice it somewhere in the
web application ?

I am using XSLTInputhandler explicitly in my servlet to do the xml to pdf
conversion and then render the pdf using acrobat. All this happens in the
servlet within the weblogic application server paradigm.

Right now I have hardcode the userconfig.xml file in the servlet as File
userConfigFile = new File(C:\\fop-0.20.5\\conf\\userconfig.xml); I need
to find a way to not hardcode it as its deployed as a jar file on
production server.

Thanks
Manoj




   
  [EMAIL PROTECTED]

  wareag.com  To:   [EMAIL PROTECTED]
 
   cc:  
   
  2005/02/04 10:49 Subject:  RE: Fonts in FOP   
   
  Please respond to 
   
  fop-user  
   

   

   




Hi Manoj,
Thanks for your help.
I really need to re-build fop.jar, because my web application uses it
standalone and I don't have code access.
I think I really should configure something in the build.xml of FOP.
Something like:
property name=ttfcomic.xml value=${build.codegen}/ttfcomic.xml/

I need to know, what and how do I need to configure?

Nuno




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 4 de Fevereiro de 2005 17:48
To: [EMAIL PROTECTED]
Subject: Re: Fonts in FOP

Nuno

I am also working on a similar issue which involves Japanese fonts but
dont
have it in a working condition. These are the points I have learned in
process.

1) Open the ttfcomic.xml and see whats the name given in the font-name
tag? This name should match the
  ComicSansMS as you have given in font-triplet tag in the
userconfig.xml

2) I would advice for time being to hardcode the complete path to
ttfcomic.xml as font metrics-file=c:\dir\ttfcomic.xml just like you
did
for the embed-file

3) No need to change build.xml

4) No need to recompile fop.jar

5) You need to load the fonts by invoking the configuration before your
parse XML -- PDF. How are you doing the xml to pdf ? I am using the
XSLTInputHandler(xml,xsl) in a servlet or are u running it from command
prompt ?

6) I came to know today that I need to manually change the XSL file (
which
i had created using XMLSPY) to refer to the font explicitly using the
font-family tag. (courtsey of Lou )

fo:block font-family=ComicSansMS font-weight=bold
padding-bottom=1mm
#x7ecf;#x8425;#x5355;#x4f4d;
/fo:block

Let me know
Manoj






  [EMAIL PROTECTED]

  wareag.com  To:
[EMAIL PROTECTED]

   cc:

  2005/02/04 08:32 Subject:  Fonts in FOP

  Please respond to

  fop-user









Hello,
I need to include a new font in FOP.
I already generate a new xml file of the font comic.ttf
(ttfcomic.xml), and in the userconfig.xml added the new font.

font metrics-file=ttfcomic.xml kerning=yes
embed-file=c:\windows\fonts\comic.ttf
   font-triplet name=ComicSansMS style=normal weight=normal/
/font

To recompile the fop.jar, what is necessary to configure?
Is it necessary anything else in the build.xml of FOP?
And where should I put the new ttfcomic.xml file for the new font? Is
it in /src/codegen?

Next in the XSL-FO, how can I refer the new font?
The font name should be ComicSansMS like refer above or the name of
the font file?

font-style=ComicSansMS

Thanks in advance.
Best regards.

Nuno Canais

-
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]


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

Re: How to embed CID-fonts in FOP 1.0dev

2004-09-30 Thread Jeremias Maerki
John,

are you sure you want to live on the bleading edge? The CVS snapshot
contains code from the redesign which in many aspects is still inferior
to FOP 0.20.5 and not ready for production use.

Anyway, as a coincidence I had to figure out the same thing myself today,
and I'm one of the FOP developers!! Here's how I did it:

import org.apache.avalon.framework.configuration.Configuration;
import org.apache.avalon.framework.configuration.DefaultConfigurationBuilder;

[...]

DefaultConfigurationBuilder cfgBuilder = new 
DefaultConfigurationBuilder();
Configuration cfg = cfgBuilder.buildFromFile(
src/xml/userconfig.xml);

FOUserAgent ua = new FOUserAgent();
ua.setUserConfig(cfg.getChild(userconfig));

//Construct driver
Fop fop = new Fop(Constants.RENDER_PDF, ua);
[...]

In my case the userconfig.xml file looks approximately like this:

cfg
  logkit
factories
[...unimportant cut out]
  /logkit
  userconfig
renderers
  renderer mime=application/pdf
filterList
  valuenull/value
/filterList
filterList type=image
  valueflate/value
  valueascii-85/value
/filterList
fonts
  font metrics-url=file:C:/Dev/FOP/temp/fonts/FUTURAL.ttf.xml 
kerning=no embed-url=file:C:/Dev/FOP/Temp/fonts/FUTURAL.ttf
font-triplet name=Futura style=normal weight=200/
font-triplet name=Futura style=normal weight=normal/
  /font
/fonts
  /renderer
  renderer mime=application/postscript
fonts
  font metrics-url=file:C:/Dev/FOP/temp/fonts/FUTURAL.ttf.xml 
kerning=no embed-url=file:C:/Dev/FOP/Temp/fonts/FUTURAL.ttf
font-triplet name=Futura style=normal weight=200/
font-triplet name=Futura style=normal weight=normal/
  /font
/fonts
  /renderer
/renderers
  /userconfig
/cfg


On 30.09.2004 16:27:40 John Mok wrote:
 
 I have downloaded the CVS snap-shot xml-fop_20040929223423.tar.gz and 
 tried to build a servlet generating PDF with Chinese characters. In FOP 
 0.20.5, I succeeded to build such servlet. However, I found the Java 
 classes and API have changed a lot in the snap-shot and some the former 
 classes, e.g. Option and Driver, do not exist anoymore. Moreover, the 
 documentation in the snap-shot is very limited without mentioning how to 
 embed CID-font in the configuration.
 
 I hope someone could help me how to configure FOP to embed CID-font, 
 e.g. MingLiU, in the new snap-shot FOP 1.0dev



Jeremias Maerki


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



Re: adding fonts to fop applet

2004-07-14 Thread Chris Bowditch
John Root wrote:
Edward,
Actually, this is not that difficult, however it's not well documented.
You'll need to set up a configuration file for FOP, convert the fonts that
you plan to use for your application, and add the info for the converted
fonts to the config file. This procedure is fairly well documented (adding
fonts to FOP).
Actually you missed the point of this thread. What you've described is how to 
set up fonts for FOP 0.20.5. But the OP is trying to set up fonts for 
development version of FOP, which is very different.

Sorry to nitpick, just want to be clear for the archives.
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: adding fonts to fop applet

2004-07-14 Thread John Root
Sorry 'bout that. 

I thought the issue seemed too simple. Thanks for the clarification.

John


On 7/14/04 5:02 AM, Chris Bowditch [EMAIL PROTECTED] wrote:

 John Root wrote:
 
 Edward,
 
 Actually, this is not that difficult, however it's not well documented.
 
 You'll need to set up a configuration file for FOP, convert the fonts that
 you plan to use for your application, and add the info for the converted
 fonts to the config file. This procedure is fairly well documented (adding
 fonts to FOP).
 
 Actually you missed the point of this thread. What you've described is how to
 set up fonts for FOP 0.20.5. But the OP is trying to set up fonts for
 development version of FOP, which is very different.
 
 Sorry to nitpick, just want to be clear for the archives.
 
 Chris


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



Re: adding fonts to fop applet

2004-07-13 Thread tango ray
Hi Simon,

you mean that you succeed in using a non base14 font for pdf rendering in your application! Will you release the code soon (on the cvs? or your website )?


Because honestly, that would really be helpfull!

Edward

		Dialoguez directement et instantanément avec vos amis grâce à Yahoo! Messenger !

Re: adding fonts to fop applet

2004-07-13 Thread John Root
Edward,

Actually, this is not that difficult, however it's not well documented.

You'll need to set up a configuration file for FOP, convert the fonts that
you plan to use for your application, and add the info for the converted
fonts to the config file. This procedure is fairly well documented (adding
fonts to FOP).

The next step is to set up your application to load the configuration file.
Here is a code snippet I used for loading a config file for a custom FOP
servlet:

public void init() throws ServletException {
try {
new Options(new File(/path/to/config/file/userconfig.xml));
}
catch (Exception ex) {
throw new ServletException(ex);
}
}

That's really all there is to it.

Good luck,
John



On 7/9/04 2:00 AM, tango ray [EMAIL PROTECTED] wrote:

 
 Thank you. The more I read, the more I m getting lost
 
 Edward
 
 Add a font in fop app is really hard !!!



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



Re: adding fonts to fop applet

2004-07-13 Thread Simon Pepping
On Tue, Jul 13, 2004 at 02:01:26PM +0200, tango ray wrote:
 you mean that you succeed in using a non base14 font for pdf rendering in 
 your application! Will you release the code soon (on the cvs? or your website 
 )?

No. I mean that if you add a font to your configuration file, it is
now actually added to the list of fonts that FOP uses. If usage of the
font is successful, is another matter, for which I am not very
knowledgeable.

Regards, Simon

-- 
Simon Pepping
home page: http://www.leverkruid.nl


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



Re: adding fonts to fop applet

2004-07-09 Thread Simon Pepping
On Fri, Jul 09, 2004 at 11:00:08AM +0200, tango ray wrote:

 Add a font in fop app is really hard !!!

Chris warned you, this version of FOP is under heavy
development. Support for user configuration and adding fonts is
patchy.

Well, was, I hope. I have just committed code which enables using a
user configuration file and adding fonts from it.

Usage:

- Command line: point to a configuration file similar to
  conf/fop.xconf. 
- From an app: add a configuration object to the FOUseragent object,
  using the method setUserConfig(userConfig), where userConfig is an
  avalon user configuration object similar to the configuration object
  obtained from conf/fop.xconf.
- From an app when you supply your own renderer: configure the
  renderer as an avalon Configurable object:
  renderer.configure(rendererConfig), where rendererConfig is an
  avalon renderer configuration object similar to the configuration
  object obtained from one of the renderer elements in
  conf/fop.xconf.

I have enabled some debugging. Set the loggers called FOP,
org.apache.fop.render and org.apache.fop.fonts to debug
level. Remember that this version of FOP uses Apache Commons
logging. See there for documentation. Example:

Fri Jul  9 -- 19:17:51 -- distelvlinder:~/programmeren/fop
JAVA_FLAGS=-Dorg.apache.commons.logging.simplelog.log.FOP=debug 
-Dorg.apache.commons.logging.simplelog.log.org.apache.fop.render=debug 
-Dorg.apache.commons.logging.simplelog.log.org.apache.fop.fonts=debug fop-run 
-c configuration-error.xml test-prop1.fo test-prop1.pdf
Using class path: 
/source/xml-fop/build/classes:/home/simon/programmeren/java/classes:/usr/local/javaclasses
[DEBUG] FOP - -No user configuration found for MIME type application/pdf

Fri Jul  9 -- 19:18:06 -- distelvlinder:~/programmeren/fop
JAVA_FLAGS=-Dorg.apache.commons.logging.simplelog.log.FOP=debug 
-Dorg.apache.commons.logging.simplelog.log.org.apache.fop.render=debug 
-Dorg.apache.commons.logging.simplelog.log.org.apache.fop.fonts=debug fop-run 
-c configuration.xml test-prop1.fo test-prop1.pdf
Using class path: 
/source/xml-fop/build/classes:/home/simon/programmeren/java/classes:/usr/local/javaclasses
[DEBUG] FOP - -User configuration found for MIME type application/pdf
[DEBUG] render - -Adding PDF filter for type content: null
[DEBUG] fonts - -Adding font arial.ttf, metric file arial.xml
[DEBUG] fonts - -Font triplet Arial, normal, normal
[DEBUG] fonts - -Font triplet ArialMT, normal, normal
[DEBUG] fonts - -Adding font arialb.ttf, metric file arialb.xml
[DEBUG] fonts - -Font triplet Arial, bold, normal
[DEBUG] fonts - -Font triplet ArialMT, bold, normal

Good luck, Simon

-- 
Simon Pepping
home page: http://www.leverkruid.nl


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



RE: Adding fonts to FOP - Where can I find already made Font-XML -Files?

2003-12-15 Thread Beer, Christian
Hi!

To process all fonts in a directory, you could do the following:

1. create a batch-file for the command containing (i called it fnts.bat):

java -cp build\fop.jar;lib\avalon-framework.jar;lib\xml-apis.jar;
 lib\xercesImpl.jar;lib\xalan.jar
   org.apache.fop.fonts.apps.TTFReader
 %1 %1.xml


2. run the following command:
for %f in (*.ttf) do fnts.bat %f

What you get are xml-files for all fonts, that are named:
fontname.ttf.xml


Greetings, 
Christian


 -Original Message-
 From: Jonny Pony [mailto:[EMAIL PROTECTED] 
 Sent: Friday, December 12, 2003 1:41 PM
 To: [EMAIL PROTECTED]
 Subject: Adding fonts to FOP - Where can I find already made 
 Font-XML-Files?
 
 
 Hi,
 
 I want to add more fonts to FOP.
 I do it something like this:
 java -cp build\fop.jar;lib\avalon-framework.jar;lib\xml-apis.jar;
  lib\xercesImpl.jar;lib\xalan.jar
org.apache.fop.fonts.apps.TTFReader
  C:\windows\fonts\cmr10.ttf ttfcm.xml
 
 Since there are so many fonts and it is a lot of work , I was 
 wondering if 
 there is a site with already made Font-XML-Files?
 
 Thanks
 Jonny
 
 _
 E-Mails sind zu unpersönlich? Mit einer Webcam wird der MSN 
 Messenger zum 
 Bildtelefon! http://messenger.msn.de Jetzt kostenlos 
 downloaden und der Spaß 
 beginnt!
 
 

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



Adding fonts to FOP - Where can I find already made Font-XML-Files?

2003-12-12 Thread Jonny Pony
Hi,
I want to add more fonts to FOP.
I do it something like this:
java -cp build\fop.jar;lib\avalon-framework.jar;lib\xml-apis.jar;
lib\xercesImpl.jar;lib\xalan.jar
  org.apache.fop.fonts.apps.TTFReader
C:\windows\fonts\cmr10.ttf ttfcm.xml
Since there are so many fonts and it is a lot of work , I was wondering if 
there is a site with already made Font-XML-Files?

Thanks
Jonny
_
E-Mails sind zu unpersönlich? Mit einer Webcam wird der MSN Messenger zum 
Bildtelefon! http://messenger.msn.de Jetzt kostenlos downloaden und der Spaß 
beginnt!

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


Re: Adding fonts to FOP - Where can I find already made Font-XML-Files?

2003-12-12 Thread J.Pietschmann
Jonny Pony wrote:
Since there are so many fonts and it is a lot of work , I was wondering 
if there is a site with already made Font-XML-Files?
There is no such site AFAIK. One possible problem is Copyright. The
other problem is: how should anybody know which fonts you intend to
use?
J.Pietschmann

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


Re: Select printer fonts from FOP

2003-09-11 Thread Benjamin Wischek
Hello Jeremias !

 You have to get the PFM file for each font and create the XML font
 metric files as shown in [1]. Also add them to the userconfig.xml and
 you should be able to reference these printer fonts. I hope that helps.

Ok, I get the idea, but where can I get the PFM-files ?

Greetings,

Ben


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



Re: Select printer fonts from FOP

2003-09-11 Thread Jeremias Maerki
The base 14 fonts (Helvetica, Times, Courier, Symbol, ZapfDingbats) are
built into FOP and don't need a PFM. All other fonts need one. If your
printer has other fonts, then you'll likely get the PFM files from the
printer's driver disk, the printer's manufacturer or from a third-party
font source such as Adobe, BitStream etc.

On 11.09.2003 16:42:54 Benjamin Wischek wrote:
  You have to get the PFM file for each font and create the XML font
  metric files as shown in [1]. Also add them to the userconfig.xml and
  you should be able to reference these printer fonts. I hope that helps.
 
 Ok, I get the idea, but where can I get the PFM-files ?


Jeremias Maerki


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



Select printer fonts from FOP

2003-09-10 Thread Benjamin Wischek
Dear list,

I am using the PS output of FOP now. One limitation is that it does not
support font-embedding.

But is it possible to select the printer internal fonts that come with
postscript from within the XSL-FO? If yes, how can I do that ?

Greetings,

Ben


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



Using Times New Roman and Arial fonts with FOP

2003-09-10 Thread Abhijit Junnare
I am using Times New Roman and Arial fonts on my
stylesheet.
I dont think FOP has these fonts embedded in it. So I
need to integrate it as per the instrcutions that come
with FOP. I have already integrated some other fonts
but I am having problem with these two. I get errors
such as 

[ERROR] unknown font TimesNewRoman,italic,normal so
defaulted fon
[ERROR] unknown font Arial,italic,bold so defaulted
font to any

How should I go about using these fonts with FOP.
Thanks,
Abhi

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: Using Times New Roman and Arial fonts with FOP

2003-09-10 Thread Andreas L. Delmelle
 -Original Message-
 From: Abhijit Junnare [mailto:[EMAIL PROTECTED]

 [ERROR] unknown font TimesNewRoman,italic,normal so
 defaulted fon
 [ERROR] unknown font Arial,italic,bold so defaulted
 font to any


Abhi,

I guess you have only embedded ( performed the necessary steps for ) the
normal Times New Roman and Arial fonts, but you probably want to embed the
bold, italic  bold-italic as well.

They should have a different .ttf-file in your Windows (?) directory, same
as the other only with a 'b' or 'i' appended... I think if you perform all
the steps for all eight ( base 2 + bold/italic/bold-italic 2 ) of them, you
will succeed.


Greetz,

Andreas


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



RE: Using Times New Roman and Arial fonts with FOP

2003-09-10 Thread Abhijit Junnare
I already had created the xml files for all the 8
combinations of Times NEw Roman and Arial i.e ( base 2
+  bold/italic/bold-italic 2 ) 

Now it displays Times New Roman, normal properly but
still gives erros for Times New Roman, Italic, normal
and Arial,italic,bold
The problem was in the userconfig.xml file I had
something like this



font metrics-file=timesbi.xml kerning=yes
embed-file=C:\WINDOWS\Fonts\timesbi.ttf
font-triplet name=Times New Roman style=normal
weight=normal/
/font

For Times Bold, Italic but later I figured out I need
the following

font metrics-file=timesbi.xml kerning=yes
embed-file=C:\WINDOWS\Fonts\timesbi.ttf
font-triplet name=Times New Roman style=bold
weight=italic/
/font

*** SEE THE DIFFERENCES IN ABOVE TWO. style=normal
and style=italic
So the problem is solved.
Thanks for your help Andreas.
Regards,
Abhi



--- Andreas L. Delmelle [EMAIL PROTECTED]
wrote:
  -Original Message-
  From: Abhijit Junnare [mailto:[EMAIL PROTECTED]
 
  [ERROR] unknown font TimesNewRoman,italic,normal
 so
  defaulted fon
  [ERROR] unknown font Arial,italic,bold so
 defaulted
  font to any
 
 
 Abhi,
 
 I guess you have only embedded ( performed the
 necessary steps for ) the
 normal Times New Roman and Arial fonts, but you
 probably want to embed the
 bold, italic  bold-italic as well.
 
 They should have a different .ttf-file in your
 Windows (?) directory, same
 as the other only with a 'b' or 'i' appended... I
 think if you perform all
 the steps for all eight ( base 2 +
 bold/italic/bold-italic 2 ) of them, you
 will succeed.
 
 
 Greetz,
 
 Andreas
 
 

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: Select printer fonts from FOP

2003-09-10 Thread Jeremias Maerki
You have to get the PFM file for each font and create the XML font
metric files as shown in [1]. Also add them to the userconfig.xml and
you should be able to reference these printer fonts. I hope that helps.

[1] http://xml.apache.org/fop/fonts.html

On 10.09.2003 15:16:57 Benjamin Wischek wrote:
 I am using the PS output of FOP now. One limitation is that it does not
 support font-embedding.
 
 But is it possible to select the printer internal fonts that come with
 postscript from within the XSL-FO? If yes, how can I do that ?



Jeremias Maerki


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



embed Fonts in FOP (not from the command line)

2003-02-05 Thread Noel Golding
I need to create a pdf that embeds the fonts.

From what I could find in order to use the userconfig.xml file you need to
use the command line.

I have embeded FOP into a JAVA application and I am not sure how to proceed
setit to use the config file.

I am using FOP 2.0.1


Thank you
Noel Golding


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



Re: embed Fonts in FOP (not from the command line)

2003-02-05 Thread Oleg Tkachenko
Noel Golding wrote:
I need to create a pdf that embeds the fonts.
From what I could find in order to use the userconfig.xml file you need to
use the command line.
I have embeded FOP into a JAVA application and I am not sure how to proceed
setit to use the config file.
That's a faq, see http://xml.apache.org/fop/faq.html#faq-N1031F.
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: embed Fonts in FOP (not from the command line)

2003-02-05 Thread Louis . Masters

Actually, I don't use the userconfig.xml file anymore.  I set most of my
config info in my java class.  For example:

Configuration.put(baseDir, file: + new File(.).getAbsolutePath());
or
Configuration.put(fonts, allFonts);

Check out FontTriplet and FontInfo in the API.

-Lou





Noel Golding [EMAIL PROTECTED] on 02/05/2003 13:14:43

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  embed Fonts in FOP (not from the command line)

I need to create a pdf that embeds the fonts.

From what I could find in order to use the userconfig.xml file you need to
use the command line.

I have embeded FOP into a JAVA application and I am not sure how to proceed
setit to use the config file.

I am using FOP 2.0.1


Thank you
Noel Golding


-
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: Prb: Using bold fonts with FOP??

2003-02-04 Thread Hugo Oliveira
I' am using version 0.20.5

When I show the result using the -awt switch the two font courier e courier
bold appear OK, but when I send it to the printer the courier new bold
appears like arial bold??

I try to send direct to the printer and the result is the same.

HOliviera

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
Sent: segunda-feira, 3 de Fevereiro de 2003 20:51
To: [EMAIL PROTECTED]
Subject: Re: Prb: Using bold fonts with FOP??


Hugo Oliveira wrote:
 My problem is that I want to use the courier Font, normal and bold.
 
 I get the courier font file from my /WINNT/Fonts/ directory and 
 generate
 the XML file for the two fonts, courier new (cour.ttf) and courier new 
 bold (courbd.ttf).
 
 When I generate the pdf file I have two different fonts in my file, 
 the
 courier new it's OK but the courier new bold is not. The font is 
 different from courier.

You have to have separate entries for the Courier New and the Courier New
bold in your userconfig.xml. Check with the documentation and the sample
(for Arial) in the sample userconfig.

What FOP release are you using?

J.Pietschmann


-
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: Prb: Using bold fonts with FOP??

2003-02-04 Thread J.Pietschmann
Hugo Oliveira wrote:
When I show the result using the -awt switch the two font courier e courier
bold appear OK, but when I send it to the printer the courier new bold
appears like arial bold??
This could be a problem with Courier Bold not available
on your printer, a problem with printer drivers, settings
or printer specific font mappings, or a problem with the
JDK. First, check your printer settings and font mappings.
It is also said printing is more mature in JDK 1.4.
I try to send direct to the printer and the result is the same.
There is basically no difference between printing from the
AWT renderer and printing directly.
J.Pietschmann

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


Re: Prb: Using bold fonts with FOP??

2003-02-03 Thread J.Pietschmann
Hugo Oliveira wrote:
My problem is that I want to use the courier Font, normal and bold.
I get the courier font file from my /WINNT/Fonts/ directory and generate 
the XML file for the two fonts, courier new (cour.ttf) and courier new 
bold (courbd.ttf).

When I generate the pdf file I have two different fonts in my file, the 
courier new it's OK but the courier new bold is not. The font is 
different from courier.
You have to have separate entries for the Courier New and the
Courier New bold in your userconfig.xml. Check with the documentation
and the sample (for Arial) in the sample userconfig.
What FOP release are you using?
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Adding FONTs to FOP (was PostScript with Unicode fonts)

2003-01-29 Thread Clay Leeds
Rodolfo M. Raya wrote:
Hi,
I need to use the PostScript renderer to produce documents with Unicode 
text.

I can generate PDF with Korean text using Arial Unicode font from 
Microsoft, but PostScript renderer only supports FOP's built in fonts.

Can I add Arial Unicode to the list of FOP fonts and use it from the 
PostScript renderer?

Is there an outline of the procedure to add a font to FOP?
I believe that this file has most of the information you need:
  fop-0.20.4\conf\userconfig.xml
In addition, this page (accessible from xml.apache.org/fop) contains 
more information on adding Type 1  TrueType fonts:

  http://xml.apache.org/fop/fonts.html
Hope this helps!
--
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Adding FONTs to FOP (was PostScript with Unicode fonts)

2003-01-29 Thread Rodolfo M. Raya




On Wed, 2003-01-29 at 14:43, Clay Leeds wrote:

Rodolfo M. Raya wrote:
 I need to use the PostScript renderer to produce documents with Unicode 
 text.
 
 I can generate PDF with Korean text using Arial Unicode font from 
 Microsoft, but PostScript renderer only supports FOP's built in fonts.
 
 Can I add Arial Unicode to the list of FOP fonts and use it from the 
 PostScript renderer?
 
 Is there an outline of the procedure to add a font to FOP?

I believe that this file has most of the information you need:

 fop-0.20.4\conf\userconfig.xml

In addition, this page (accessible from xml.apache.org/fop) contains 
more information on adding Type 1  TrueType fonts:

   http://xml.apache.org/fop/fonts.html


Thanks Clay,

I already use userconfig.xml to produce PDF with Korean text with Arial Unicode font. Now I need PostScrip with the same fonts.

Regards,
Rodolfo



-- 
Rodolfo M. Raya [EMAIL PROTECTED]
Heartsome Holdings Pte. Ltd.








Fonts:: Can fop display *any* local font

2002-05-22 Thread Stephen Clarke
Hi all,
Is it possible to display *any* locally installed font or are we limited to
just a few main ones? As I recall, fop is limited to just four or five main
fonts for display in pdf output. Is that correct?

I'm interested in making a catalogue of all locally available fonts. I was
thinking, one way might be through xml and fop to pdf. But probably not a
good idea, no?

Last time I did it in Flash, but it was awfully complicated and painstaking.
I want some way of arranging the fonts together, sans, serif, cursive, etc.

Any help appreciated.
--
sc




Re: Fonts:: Can fop display *any* local font

2002-05-22 Thread Chuck Paussa
You can embed any font in the generated PDF following the instructions 
given here http://xml.apache.org/fop/fonts

Your catalog of fonts are in your machine. So create a script to 
generate the font metric files, edit the userconfig.xml file and then 
generate an FO document that displays some text in each of the fonts.

Chuck
Stephen Clarke wrote:
Hi all,
Is it possible to display *any* locally installed font or are we limited to
just a few main ones? As I recall, fop is limited to just four or five main
fonts for display in pdf output. Is that correct?
I'm interested in making a catalogue of all locally available fonts. I was
thinking, one way might be through xml and fop to pdf. But probably not a
good idea, no?
Last time I did it in Flash, but it was awfully complicated and painstaking.
I want some way of arranging the fonts together, sans, serif, cursive, etc.
Any help appreciated.
--
sc
 





Re: Fonts:: Can fop display *any* local font

2002-05-22 Thread Stephen Clarke
Many thanks, Chuck. That's pretty much what I was thinking. I wasn't sure
about embedding the fonts.
Thanks,
--
best,sc
- Original Message -
From: Chuck Paussa [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 22, 2002 5:44 PM
Subject: Re: Fonts:: Can fop display *any* local font


 You can embed any font in the generated PDF following the instructions
 given here http://xml.apache.org/fop/fonts

 Your catalog of fonts are in your machine. So create a script to
 generate the font metric files, edit the userconfig.xml file and then
 generate an FO document that displays some text in each of the fonts.

 Is it possible to display *any* locally installed font or are we limited
to
 just a few main ones? As I recall, fop is limited to just four or five
main
 fonts for display in pdf output. Is that correct?
 
 I'm interested in making a catalogue of all locally available fonts. I
was
 thinking, one way might be through xml and fop to pdf. But probably not a
 good idea, no?
 





MICR fonts with FOP

2002-04-25 Thread Venu Reddy
Hello,
Is anybody using MICR fonts with FOP.
If so could you please give me directions
on how I could do this.

Thanks,

Venu Reddy


Re: True Type Fonts in Fop

2001-12-17 Thread jthaemlitz


They were Type 1 PFM fonts.  They looked fine when they were viewed with
Acrobat on NeoWare Linux.  But they would not print (standard Linux lpr
poscript was used).

JohnPT





[EMAIL PROTECTED]   
  
APACHE.ORG
To: [EMAIL PROTECTED]   
  
cc:   
12/17/01 02:25 AM 
Subject: Re: True Type Fonts in Fop   
Please respond to fop-user  









On 2001.12.14 18:05 [EMAIL PROTECTED] wrote:

 We noticed that when fonts are embeded by FOP they are imported with
 Windows encoding (in Adobe File-Document Info.-Fonts...).  If you use
 a
 Adobe tool to embeded a font it's encoding is Built-in (or something to
 that effect).  We found our Unix boxes needed things tweaked,similar to
 whats described by Chuck below, to make the FOP embeded fonts work.  The
 Windows encoding happened even if the FOP processing was run on a
 non-Windows computer.

 I still don't get why that works like that.  A clean solution to this
 would
 be something nice for the documentation library :)

 JohnPT

I there is precise information then it should be documented.

What type of font were you embedding, was it a windows font. Could it be
possible that the font cannot be used on another platform.
The fonts are embedded, they are not converted.









Re: True Type Fonts in Fop

2001-12-14 Thread Matt Raible
I believe FOP only supports Times and Courier.  I discovered last week that if
you don't specify any font, you'll get Arial.

You might try www.renderx.com for a parser that supports more of the standard.

Matt

--- Sam Prokop [EMAIL PROTECTED] wrote:
 Hi,
 i´ve got the following problem,
 i did everthing like it is said in http://xml.apache.org/fop/fonts.html,
 created metrics etc..
 
 fop says: Writing 12180 bytes of font data
 
 But there is still the standard font in my pdf.
 
 i´m using fop 0.20.2.  
 
 the entry in the conf/userconfig.xml:
 
   font metrics-file=FONTS\ANTQUAB.XML kerning=yes
 embed-file=C:\WINNT\FONTS\ANTQUAB.TTF
   font-triplet name=BookAntiqua,Bold
 style=normal weight=bold/
   font-triplet name=Book Antiqua Bold
 style=normal weight=bold/
   /font
 
 this is the beginning of the metrics-file:
 
 ?xml version=1.0 encoding=UTF-8?
 font-metrics type=TYPE0
   font-nameBookAntiqua,Bold/font-name
   embed/embed
   cap-height685/cap-height
   x-height0/x-height
 
 --
 Sam 
 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com