    Contents  Index  Topic Contents
    Previous Topic: DAEvent Class
    Next Topic: DAGeometry Class

> ## DAFontStyle Class

> 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).

> - DAFontStyle Functions
> - Relevant Functions from the DAStatics Class
> - Relevant Properties from the DAStatics Class

> ### DAFontStyle Functions

> AntiAliasing

> Bold

> Color

> FamilyAnim

> Family

> Italic

> SizeAnim

> Size

> Strikethrough

> Underline

> WeightAnim

> Weight

> ####

> AntiAliasing

> DAFontStyle Class

> 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
> )

> ##### Parameters

> antialias
>   A double that can be either 0 or 1.

> ##### Return Values

> Returns the DAFontStyle object.

> ####

> Bold

> DAFontStyle Class

> Specifies that, when the string is rendered into an image, it will be in bold.

> fontstyleObj.Bold( )

> ##### Return Values

> Returns the DAFontStyle object.

> ####

> Color

> DAFontStyle Class

> 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
> )

> ##### Parameters

> color
>   The DAColor object specifying the color of the string.

> ##### Return Values

> Returns the DAFontStyle object.

> ####

> FamilyAnim

> DAFontStyle Class

> 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
> )

> ##### Parameters

> face
>   The DAString object specifying the font face.

> ##### Return Values

> Returns the DAFontStyle object.

> ####

> Family

> DAFontStyle Class

> Same as FamilyAnim except that face is a non-animated string. For example, consider the following JScript code:

>     fs = m.DefaultFont.Family("Arial").Color(m.Red).Bold();

> fontstyleObj.Family(
> face
> )

> ####

> Italic

> DAFontStyle Class

> Specifies that, when the string is rendered into an image, it will be italicized.

> fontstyleObj.Italic( )

> ##### Return Values

> Returns the DAFontStyle object.

> ####

> SizeAnim

> DAFontStyle Class

> Specifies the size of the font, in points. Because this is a DANumber object, the size can vary over time.

> fontstyleObj.SizeAnim(
> points
> )

> ##### Parameters

> points
>   The DANumber object specifying the size of the font.

> ##### Return Values

> Returns the DAFontStyle object.

> ####

> Size

> DAFontStyle Class

> Same as SizeAnim except that points is a non-animated number (a double).

> fontstyleObj.Size(
> points
> )

> ####

> Strikethrough

> DAFontStyle Class

> Specifies that, when the string is rendered into an image, it will be struck through.

> fontstyleObj.Strikethrough( )

> ##### Return Values

> Returns the DAFontStyle object.

> ####

> Underline

> DAFontStyle Class

> Specifies that, when a string is rendered into an image, it will be underlined.

> fontstyleObj.Underline( )

> ##### Return Values

> Returns the DAFontStyle object.

> ####

> WeightAnim

> DAFontStyle Class

> 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
> )

> ##### Parameters

> weight
>   A DANumber object that specifies the thickness of the boldness of the font. The value can range from 0 (the thinnest) to 1 (the thickest).

> ##### Return Values

> Returns the DAFontStyle object.

> ##### See Also

> Weight

> ####

> Weight

> DAFontStyle Class

> Same as WeightAnim except that the argument is non-animated (a double).

> fontstyleObj.Weight( )

> ##### See Also

> WeightAnim

> ### Relevant Functions from the DAStatics Class

> The following functions are defined in the DAStatics class and are most relevant to objects of type DAFontStyle.

> lib.FontAnim(face, size, color)

> lib.Font(face, size, color)

> ### Relevant Properties from the DAStatics Class

> The following properties are defined in the DAStatics class and are most relevant to objects of type DAFontStyle.

> lib.DefaultFont

> © 1998 Microsoft Corporation. All rights reserved. Terms of Use.

> Top of Page