Re: Why some fonts in FontSetup but not others?

2001-08-14 Thread Keiron Liddle

On Tue, 14 Aug 2001 00:16:44 Randall Parker wrote:
 I understand the conservative motivation here. But suppose I'm generating
 PDFs
 for an intranet app (as it happens I am) and have complete control over
 which 
 fonts are on the user machines. Well, in that case I do not want 
 PDFDocumentGraphics2D's constructor looking at textAsShapes and deciding
 to 
 instantiate a FontInfo class that uses a FontSetup class that effectively
 is used to restrict 
 which fonts I can use.

Yes, this would be possible. You could create a font setup that knows what
fonts you have by default, restrict other fonts, not embed fonts etc. you
may still need the font metrics info though.

 Where does the FOP embedding font technique get its fonts? Do you have to
 give FOP a 
 path to where to find fonts to embed? Or can it get them from Java AWT
 font calls and then 
 serialize them into a format to put in the PDF? Or do you have to put the
 fonts right into the 
 XSL FO document for FOP to find there? 

FOP can get info about embedding fonts from a config file. This is done
from a conversion of font files (look at the website).
In the case of PDFGraphics2D (as I said, not implemented) it would need to
setup the embedded fonts the same sort of way.

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




Re: Why some fonts in FontSetup but not others?

2001-08-13 Thread Keiron Liddle

Randall,

The particular fonts that are added in FontSetup are all the fonts that are
always available to Acrobat Reader. These are fonts that come with acrobat.
Other fonts may be avilable to acrobat on your machine (because you havew a
particular font installed) but that does not ensure that someone else will
be able to view the document with that font.

So in particular for the PDFGraphics2D you have two options:
- use shapes to draw text (makes the file much larger and looks bad in the
viewer but prints ok)
- embedd the font using FOP embedding font technique, currently this is not
implemented for svg text


On Sun, 12 Aug 2001 09:33:48 Randall Parker wrote:
 In org.apache.fop.render.pdf.FontSetup.java a number of fonts are listed
 by addFontProperties calls. I am wondering how those 
 particular fonts were chosen and why others are not listed there. 
 
 For instance, why aren't QuickType and Arial listed? There are many
 others that could be listed as well. 
 
 It appears that for any font that does not get initialized in
 FontSetup.java then when one uses that font in a call to 
 PDFDocumentGraphics2D the result is to change it to a default font (which
 appears to be Helvetica without bold or italics). 
 
 On my own machine looping thru and dumping out all the fonts available on
 JDK 1.3 here is what I see:


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




Re: Why some fonts in FontSetup but not others?

2001-08-13 Thread Randall Parker

Keiron,

If one took the SVG document and parsed it into a DOM tree could one then look at that 
tree 
to find out which fonts it used, add an XSL FO set of tags around it that called out 
which fonts 
to embed and then convert that into a PDF? 

BTW, I've posted in a couple of forums elsewhere asking for info about which fonts are 
available 
in each version of Acrobat and Acrobat Reader. I'll let you know if I learn anything.

On Mon, 13 Aug 2001 10:25:01 +0200, Keiron Liddle wrote:

So in particular for the PDFGraphics2D you have two options:
- use shapes to draw text (makes the file much larger and looks bad in the
viewer but prints ok)
- embedd the font using FOP embedding font technique, currently this is not
implemented for svg text



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