New Forum | Previous | Next | (P-PDF) Developers
Topic: Re: Font attributes in PDF
Conf: (P-PDF) Developers, Msg: 57126
Date: 5/29/2002 05:23 PM
At 04:47 PM 11/24/2001 +1100, p-pdf-developer Listmanager wrote:
>Regarding my previuos postings: i've done it with PHM PDFlib and XML -
>But i'ce found some difficulties in setting the font attributes such are,
>bold, italic, underline.
PDF has no concept of "font attributes". Such things have to be
>Regarding BOLD, i'm doing it like:
>pdf_set_value($pdf, "textrendering", 1);
>pdf_set_value($pdf, "textrendering", 0);
>but text after textrendering=1 looks too thick, it's not bold, its just
>thick text! Any other methods?
Correct. TextRendering is NOT what you think of as "bold
text". If you want bold, then you need to specify the bold version of the
font (Helvetica Bold instead of simply Helvetica).
>How to make it italic or underline - i even dont have any glue :(
For italics, you need the italic version of the font (ie.
Helvetica Oblique). For underline, PDFlib can do that for you using the
>I've skimmed through pdflib documentation - hmmm.... may be i'm not enough
>professional in english.
All of this is documented in there...