in reply to PDF::ReportWriter Custom fonts

According to the docs, can't you use the font attribute of the cell (ala font-size)?

-derby

Replies are listed 'Best First'.
Re^2: PDF::ReportWriter Custom fonts
by manua (Novice) on Feb 15, 2010 at 16:54 UTC
    The font attribute takes the font available from the font list and font list only has the core fonts,

    An array of font names ( from the corefonts supported by PDF::API2 ) to set up. When you include a font 'family', a range of fonts ( roman, italic, bold, etc ) are created.

    . I want to add my own .otf files to the font list and use them.

      Ahh ... yeah I don't see that in the source for PDF::ReportWriter; however, it looks like you could probably access the PDF::API2 object and use it's ttffont method but that's not going to be fun.

      -derby
        I also thought of doing the same, but I ahve only one pdf object (created from PDF::ReportWriter), so how can i access the object of PDF::API2 and use it here to modify the fonts in this report object.

        Actually, my aim is to get a table in the landscape view with my custom fonts. With PDF::API2, I am able to use the custom fonts, but having issues with table in landscape view. With the page rotation, do you have any idea how can i rotate the table as well.