These values are applied the same way as in Cascading Style Sheets (CSS). This can either be a single value or a tuple containing 2 to 4 values. The attribute borderPadding adjusts the padding between the paragraph and the border of its background. The figure below shows space before and after and an This may be useful if the lines contain different font sizes etc. If you set autoLeading(default "off") to min(use observed leading even if smaller than specified) or max(use the larger of observed and specified) then an attempt is made to determine the leading This is the spacing betweenĪdjacent lines of text a good rule of thumb is to make thisĢ0% larger than the point size. The fontSize and fontName tags are obvious, but it is Of the space occupied by the Paragraph itself.
Should be thought of as 'requests' to the Frame and are not part Get acres of whitespace at the top of a page. Inches of space before when it occurs in mid-page, but will not This means that you could specify that a 'Heading2' style had two SpaceBefore is ignored, and at the bottom, spaceAfter is ignored. Say, except at the top or bottom of a frame. The two attributes spaceBefore and spaceAfter do what they So that you can see exactly what space is taken up.
The following examplesĭraw paragraphs in various styles, and add a bounding box The Paragraph and ParagraphStyle classes together Sample = """You are hereby charged that on the 28th day of May, 1970, you did willfully, unlawfully, and with malice of forethought, publish an alleged English-Hungarian phrase book with intent to cause a breach of the peace. RML Licence File Deployment and VerificationĬlass ParagraphStyle(PropertySet): defaults = Using Paragraph Styles Chapter 4: Basic figures lines and shapesĬhapter 6: More about pages and page structuresĬhapter 9: About Cross References and Page NumbersĪppendix B: Glossary of terms and abbreviationsĪppendix C: Letters used by the Greek tag