[reportlab-users] TableStyle Cell Formatting Commands
Tim Johnson
reportlab-users@reportlab.com
Sun, 31 Oct 2004 12:40:19 -0900
* Robin Becker <robin@reportlab.com> [041031 01:31]:
Thank you Robin: This is very welcome information .
I do have further questions:
Consider the following subtext of my original query:
> Example: FONTNAME ==>> acceptable names
> FONTSIZE ==>> acceptable sizes
> TEXTCOLOR ==>> acceptable colors
If I change the following command from
('FONTNAME', (1,3),(1,3),'Times-Bold') ## to
('FONTNAME', (1,3),(1,3),'Times-old')
I get a KeyError on _typefaces, which appears to be sourced
from pdfmetrics. grep finds references to _typefaces in a subroutine
called dumpFontData() in pdfmetrics.py.
I find no documentation on dumpFontData in reference.pdf, or in
userguide.pdf. I will assume that python code referencing dumpFontData
will give me a list of acceptable type faces. Am I correct?
Are there other subroutines that will give me acceptable argument lists
and commands?
:-) If you think for a moment I'm complaining, put your mind at rest.
This is a wonderful system, one I'm likely to grow old with.
I'm just looking for more ways to find out what my options
are.
regards
tim
> Tim Johnson wrote:
> >Hello List:
> > I am using userguide.pdf. I need more documentation on
> > the values to be paired with the command identifiers.
> >I note the following text on page 72:
> >
> >.......
> >mathematicians) 'RC' ordering. The top left cell is (0, 0) the bottom
> >right is (-1, -1). Depending on the command various extra (???) occur at
> >NOTE THE ???'s ============================================^^^
> > Is something missing there?
> >.....
> >Pointers to further documentation is welcome.
> >thanks
> >tim
> The ??? represent arguments. Different commands have different argument
> lists and requirements.
>
>
> LINECOMMANDS
> GRID BOX OUTLINE INNERGRID LINEBELOW LINEABOVE LINEBEFORE LINEAFTER
>
> The generic line command has the structure
> op, (sc,sr), (ec,er), weight, color, cap, dash, join, count, space
>
>
> BACKGROUND Commands
> BACKGROUND ROWBACKGROUNDS COLBACKGROUNDS
>
> op, (sc,sr), (ec,er), color
>
> for the last two color is a list of colors (for colour changes).
>
>
> LEFT/RIGHT/TOP/BOTTOMPADDING size
> FONTNAME fontName same as FACE fontName
> SIZE size same as FONTSIZE size
> LEADING size
>
> FONT fontName [fontSize [leading]] combined command
>
> TEXTCOLOR color
> ALIGN 'left'/'right'/'center'/'centre'/'decimal'
> VALIGN 'top'/'bottom'/'middle'
>
> SPAN (sc,sr), (ec,er)
> --
> Robin Becker
> _______________________________________________
> reportlab-users mailing list
> reportlab-users@reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users
--
Tim Johnson <tim@johnsons-web.com>
http://www.alaska-internet-solutions.com