Well, i'm happy to solve this yourself :) Sometimes i tell the problem to a duck on my table, it will be solved by itself. :)

Bye

2016-09-01 22:50 keltezéssel, Clark, Raymond C írta:

Thank you.

 

I was able to fix my problem by calling:

 

             psDocumentHandler.setupFontResources();

 

And then naming the font correctly later as:

 

            IFState ifState = IFState.create();

            ifState.setFontFamily("Helvetica");

            ifState.setFontStyle(Font.STYLE_NORMAL);

            ifState.setFontWeight(Font.WEIGHT_NORMAL);

            ifState.setFontSize(10);

            ifState.setTextColor(Color.BLACK);

            ifPainter.setState(ifState);

 

Ray

 

From: Szeak (Register Man) [mailto:szea...@gmail.com]
Sent: Tuesday, August 30, 2016 1:41 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Need help calling FOP correctly

 

Hi,

We need more info about how do you using FOP. What is in FOP config?
Can you show us your used config, and small piece from your code which loads or sets the config?

2016-08-29 22:51 keltezéssel, Clark, Raymond C írta:

Hi all,

 

At work we have a Java framework that I need to hook in with FOP.  So I need our framework to call the appropriate FOP classes.methods to produce a PostScript file.  I have it producing a PostScript file but I am having trouble with fonts.

 

What do I need to call to get a font, Helvetica or Times New Roman, etc, loaded into PSDocumentHandler correctly so that when I call PSPainter.drawText the text appears in the PostScript file?  Right now I am getting the Font not available exception.

 

Thank you,

Ray

 



CONFIDENTIALITY NOTICE: This e-mail and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed and may contain confidential and privileged information protected by law. If you received this e-mail in error, any review, use, dissemination, distribution, or copying of the e-mail is strictly prohibited. Please notify the sender immediately by return e-mail and delete all copies from your system.

 

--------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org


--------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to