Debasish Jana wrote:
While rendering fonts (TTF) from XSl-fo to PDF, the fonts are not shown as
smooth as it should be.
...
After seeing it in Acrobat Reader, by making smooth text option off, the
texts look much better.

Is this "smooth text" option an option in Acrobat Reader? If so,
that's not a problem with FOP but rather with the combination of the
font, your display and/or the graphics driver, and perhaps Acrobat
Reader itself.


It seems somehow the smoothening of the characters in the specified font is
not happening properly.

Well, I used to associate "smoothing" for fonts with "anti-aliasing".
This is known to give bad results under for some fonts on mainstream
computer displays and certain other circumstances. A font with
"Condensed" in its name is a candidate for such a situation, for
reasons given further down.

The print-out should be ok, because printers generally have a much
higher resolution than computer displays.

What could be the reason? Are we missing something in setting up the
configurations?

I don't think there is anything FOP can do in this situation. If you
want good results on a computer display, use a font which has a stroke width of at least one display pixel for mainstream displays (a 19"
at 1280x1024 has ~84dpi) for common font sizes (12pt). The letters
should mainly use exactly horizontal and vertical strokes. Thin,
slightly slanted lines fare horrible if anti-aliasing is enabled.

Another question, is FOP 0.92 using SVG to render fonts in PDF?

That's a strange question. Why do you ask this? And no, FOP doesn't
render fonts in regular FO content at all; rather, the glyph definitions
are embedded (for user fonts) into the PDF. Rendering is done by the PDF
viewer, which usually delegates the job to the graphics system on the
host machine.

Also, how do I incorporate OTF?

OTF is an enhancement of the TTF format. You can try to handle it
exactly like a TTF, i.e. generating a metrics file using TTFFile
etc. If you get an error (likely), the answer is "no chance, pal".
Note that not getting an error while generating a metrics file
doesn't necessarily mean all is well.
Some font editors are said to be able to downgrade OTF fonts to TTF
automatically with reasonably good results, you might want to ask
on an appropriate forum.

J.Pietschmann

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

Reply via email to