Hi LPBill,

lpbill <[EMAIL PROTECTED]> wrote on 10/07/2008 10:05:58 PM:

> I would just like to post a follow up to the problem that Lea found. 
Here
> are the details:
> 
> - Creating SVG and not converting fonts to shapes and not embedding svg
> fonts.
> - Converting to a PDF using FOP 0.95
> - I am using the FOPFactory user config to specify directories of fonts
> using the specified format (<directory>DIR_HERE</directory>).
> 
> Results:
> - If the font is installed on the system AND the directory containing 
the
> font is referenced in the FOPFactory config then it works properly.
> - If the font is not installed, or the directory is not referenced then 
the
> font is not embedded.
> 
> 
> Is this the expected result? 

   Yes, it is expected, it probably isn't desired but it's expected.
I suppose ideally FOP would automatically notify Batik about the fonts
in that directory, so that Batik would consider them as candidates for
rendering text.

> I was expecting that as long as I referenced the directory where the 
> font was then it would be embedded properly. Any feedback is 
appreciated.

   The problem is that Batik doesn't know about any of the fonts
in the FOP font directory.  So when it does font matching it ends up
replacing the desired font with one it can find (that is installed
on the system).  You could also notify Batik of the font either through
CSS (@font-face) or SVG (<font-face/> element) - see 
samples/tests/spec/font/fontFace.svg for an example of using them.


> 
> Thanks,
> Bill
> 
> 
> 
> Hi,
> 
> I just thought I would post an update.
> 
> I am now specifying my fonts via FOP and the result has been remarkable. 
A 5
> page PDF with one embedded font is now approximately 200K! I could not 
of
> hoped for a better result.
> 
> As an aside, I have encountered a number of issues with FOP not picking 
up
> my fonts unless installed but I will get some concrete use cases before 
I
> post regarding this. 
> 
> I am running on Mac OS X 10.5 so maybe this is contributing to it.
> 
> Finally thank you for your help it is much appreciated.
> 
> Regards
> Lea.
> 
> -- 
> View this message in context: http://www.nabble.com/%22No-
> ImagePreloader-found%22-when-attempting-to-reference-external-font-
> tp17604859p19871032.html
> Sent from the Batik - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to