The DAFontStyle class is used to specify how strings will be rendered into images. These functions are similar to the HTML tags specifying the font face (called here a family), size, color and attributes (bold and italic).
Determines whether or not the font will be antialiased. If antialias is 0 (the default), there is no antialiasing. If it is 1, there is antialiasing.
fontstyleObj.AntiAliasing(
antialias
)
Returns the DAFontStyle object.
Specifies that, when the string is rendered into an image, it will be in bold.
fontstyleObj.Bold( )
Returns the DAFontStyle object.
Specifies the color of the string when it is rendered into an image. Because this is a DAColor object, the color can vary over time.
fontstyleObj.Color(
color
)
Returns the DAFontStyle object.
Specifies the font face that will be used when the image is rendered. Because this is a DAString object, the face can vary over time.
fontstyleObj.FamilyAnim(
face
)
Returns the DAFontStyle object.
Same as FamilyAnim except that face is a non-animated string.
fontstyleObj.Family(
face
)
Specifies that, when the string is rendered into an image, it will be italicized.
fontstyleObj.Italic( )
Returns the DAFontStyle object.
Specifies the size of the font, in points. Because this is a DANumber object, the size can vary over time.
fontstyleObj.SizeAnim(
points
)
Returns the DAFontStyle object.
Same as SizeAnim except that points is a non-animated number (a double).
fontstyleObj.Size(
points
)
Specifies that, when the string is rendered into an image, it will be struck through.
fontstyleObj.Strikethrough( )
Returns the DAFontStyle object.
Specifies that, when a string is rendered into an image, it will be underlined.
fontstyleObj.Underline( )
Returns the DAFontStyle object.
Same as WeightAnim except that the argument is non-animated (a double).
fontstyleObj.Weight( )
Specifies the thickness of the boldness of the font. This attribute can be thought of as an animated bold. Note that the font itself has specific, discrete settings for the weight. Varying the value of the weight results in discrete, rather than continuous, changes. The DAFontStyle.Bold function always overrides this setting.
fontstyleObj.WeightAnim(
weight
)
Returns the DAFontStyle object.
The following functions are defined in the DAStatics class and are most relevant to objects of type DAFontStyle.
lib.FontAnim(face, size, color)
The following properties are defined in the DAStatics class and are most relevant to objects of type DAFontStyle.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.