FOP does not synthesize fonts with different weights. You need to supply the
fonts with the weights you specify in FO content.

Regards,
Glenn

On Tue, Mar 8, 2011 at 4:31 PM, Marquart, Joshua D <
[email protected]> wrote:

> I have a question about Font Weight.
>
>
>
> We’re using Helvetica and using FOP to take the FO file and generate it as
> both (1) a PostScript file and (2) a TIFF file.
>
>
>
> Additionally, we are able to use third-party software to take the
> PostScript file and convert it directly to a second TIFF file (for
> comparison reasons).
>
>
>
> Of course, the fonts on the TIFF from FOP are a little pixilated and the
> “normal” font could stand to be rendered a bit darker.
>
>
>
> I am using Helvetica and tried to set the font-weight to 500 or 600, but it
> gets replaced with weight 400, which is apparently the “normal” Helvetica
> font registered in the system.
>
> Font-weight Bold and values of 800 and 900 use the “bold” Helvetica which
> is weight 700.
>
>
>
> Is there an easy way to use / access a darker 500 or 600 weight Helvetica,
> or possibly render the or am I really sunk here?
>
>
>
> I’ve already extended the Java2DRenderer,  for my own purposes.
>
>
>
> The following Graphics2D rendering hints don’t seem to do much when
> included:
>
>
>
> graphics.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS,
> RenderingHints.VALUE_FRACTIONALMETRICS_ON);
>
> graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
> RenderingHints.VALUE_ANTIALIAS_ON);
>
> graphics.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
> RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
>
> graphics.setRenderingHint(RenderingHints.KEY_RENDERING,
> RenderingHints.VALUE_RENDER_QUALITY);
>
> graphics.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL,
> RenderingHints.VALUE_STROKE_PURE);
>
>
>
> Suggestions would be very helpful.
>
>
>
> Much thanks,
>
>
>
> Josh
>
>
>
> ------------------------------
>
> * The information in this message may be proprietary and/or confidential,
> and protected from disclosure. If the reader of this message is not the
> intended recipient, or an employee or agent responsible for delivering this
> message to the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this communication in error, please notify
> First Data immediately by replying to this message and deleting it from your
> computer. *
>

Reply via email to