Hi lpbill,
lpbill <[EMAIL PROTECTED]> wrote on 10/08/2008 10:34:19 PM:
> Thank you very much for your reply! That does explain why the fonts are
not
> getting embedded properly. I think I may have a bigger underlying
problem in
> that I can verify that even when I embed the fonts in the svg file e.g.:
> <defs id="genericDefs"
> /><g
> ><defs id="defs1"
> ><font-face ascent="100.53711" descent="21.972656"
units-per-em="100"
> style="font-style:normal; font-family:AnnabelleJF; font-weight:normal;"
> ...
Umm, That doesn't look like a good font-face element to me.
font-style, font-family and font-weight need to be attributes not
CSS properties on the font-face element.
> that the text does still not show up properly when I just view the SVG
file.
> I'm going to keep digging down on it and if you have any suggestions
please
> let me know.
I suggest you cut and past one of the examples from fontFace.svg
get it working, then slowly start modifying it to do what you need it to.
> When I have some results I'll post them here.
>
>
> 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.
>
>
> --
> View this message in context: http://www.nabble.com/%22No-
> ImagePreloader-found%22-when-attempting-to-reference-external-font-
> tp17604859p19891233.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]
>