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 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: Metrics Files for OS X, and image errors

2004-06-29 Thread John Root
On 6/28/04 2:48 PM, David Shevitz [EMAIL PROTECTED] wrote:

 1. I cannot figure out how to create the necessary metrics files for my
 fonts. The fonts on OS X are in a font suitcase, and I can't find out
 what extension they are, so I don't know what command to use from FOP to
 create the files.

David,

You can't generate fonts for FOP from Mac encoded PostScript fonts. You must
use PC or Unix format PostScript font files or else TrueType format.


John

~~
John Root
Publishing Systems
[EMAIL PROTECTED]
~~



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



Re: Non-visible characters in embedded fonts

2004-01-02 Thread John Root
On 1/1/04 3:54 PM, Petr van Blokland [EMAIL PROTECTED] wrote:

 Does anyone know where to search for the problem that characters
 #130;  to #159; are displayed as # characters.

# characters appear in the output when there is no glyph for that character
code in the selected font.


John


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



Re: Font characters showing up as pound signs

2003-12-08 Thread John Root
On 12/8/03 8:09 AM, Benji Spencer [EMAIL PROTECTED] wrote:

 Background:
 We are trying to get an e with a line over it to show up in a PDF document
 which is being generated from an XML files with fop. The character ends up
 ad a pound sign in the PDF, though from the same XML file, the character is
 displayed correctly in HTML on the website. Oddly enough, I can not get
 that character to show up in my mail program (Eudora) either to show you
 the character we are trying to reproduce.
 
 I have done some reading, and it sounded as if I needed to embed the font
 in the PDF. I *think* I have done this correct (no errors were produced),
 but have not been able to overcome the problem.
 
 Question: How do I get this character to show up in the PDF?
 

Have you verified that this font contains the glyph you want, and are you
using the correct decimal code for the glyph? (This may seem obvious, but)
Are you specifying the font in the stylesheet?

Typically, a # in the output indicates there was no glyph in the font for
this character code.

cheers,
John




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



Re: Aligning paragraph text, setting font-family

2003-12-05 Thread John Root

Try the following:

fo:block
  font-size=12pt font-family=Arial space-after=0cm
  text-align=justify text-align-last=left . . . .  
  
 xsl:value-of select=body/

/fo:block


 Also, when i give font-family=Arial in a fo:block, it shows
 
 [ERROR] unknown font sans,normal,normal so defaulted font to any
 
 Iam using Win2k and the font is there by default

Nada! Fop only uses base 14 fonts by default. To use Arial, you need to
build a font metrics file (in xml) for the font using TTFReader (part of the
Apache FOP distribution), then register the font with FOP by modifying or
setting up an FOP configuration file. See the documentation on fonts (
./build/site/fonts.html ).

cheers,
John

~~
John Root
Publishing Systems
[EMAIL PROTECTED]
~~


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