AnnotationInfo
¶
-
class
Draft.
AnnotationInfo
((object)arg1) → None¶ A class that contains properties used for textual annotations.
__init__( (object)arg1) -> None
-
BackgroundColor
¶ A
Draft.ColorRGBA
value denoting the background color. (Defaults to transparent.)
-
Color
¶ A
Draft.ColorRGBA
value denoting the color of the text. (Defaults to white.)
-
DrawShadow
¶ A boolean value denoting whether or not to draw a shadow around the text. (Defaults to false.)
-
FontMetric
¶ A
Draft.FontTypeMetric
object used to retrieve font and text properties for the annotation. Its values are set when the annotation is created.
-
FontType
¶ A string value denoting the type of font to use. (Defaults to Adobe’s Source Sans Pro.)
-
Padding
¶ A decimal value denoting the padding around the text. (Defaults to 0.0.)
-
PointSize
¶ An integer value denoting the size of the font. (Defaults to 32.)
-
ShadowColor
¶ A
Draft.ColorRGBA
value denoting the color of the shadow. (Defaults to black.)
-
Sample Code:
textInfo = Draft.AnnotationInfo()
textInfo.PointSize = 24
textInfo.FontType = "Helvetica"
textInfo.Color = Draft.ColorRGBA( 0.75, 0.54, 0.975, 1.0 )
textInfo.BackgroundColor = Draft.ColorRGBA( 0.0, 0.0, 0.0, 0.0 )