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
DAFontStyle Class
AntiAliasingDetermines 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.
DAFontStyle Class
BoldSpecifies that, when the string is rendered into an image, it will be in bold.
fontstyleObj.Bold( )
Return Values
Returns the DAFontStyle object.
DAFontStyle Class
ColorSpecifies 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.
DAFontStyle Class
FamilyAnimSpecifies 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.
DAFontStyle Class
FamilySame 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
)DAFontStyle Class
ItalicSpecifies that, when the string is rendered into an image, it will be italicized.
fontstyleObj.Italic( )
Return Values
Returns the DAFontStyle object.
DAFontStyle Class
SizeAnimSpecifies 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.
DAFontStyle Class
SizeSame as SizeAnim except that points is a non-animated number (a double).
fontstyleObj.Size(
points
)DAFontStyle Class
StrikethroughSpecifies that, when the string is rendered into an image, it will be struck through.
fontstyleObj.Strikethrough( )
Return Values
Returns the DAFontStyle object.
DAFontStyle Class
UnderlineSpecifies that, when a string is rendered into an image, it will be underlined.
fontstyleObj.Underline( )
Return Values
Returns the DAFontStyle object.
DAFontStyle Class
WeightAnimSpecifies 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
DAFontStyle Class
WeightSame as WeightAnim except that the argument is non-animated (a double).
fontstyleObj.Weight( )
See Also
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)
Relevant Properties from the DAStatics Class
The following properties are defined in the DAStatics class and are most relevant to objects of type DAFontStyle.
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.