Font-Variant Attribute

HTML (DHTML)

Font-Variant Attribute

Internet Development Index

Defines the variant style of a font. Read/write String.

Applies To

TextPath

Tag Syntax

<v: element style="font-variant:expression">

Script Syntax

element.style.fontvariant="expression"

expression=element.style.fontvariant

Remarks

The values are:

  • normal (default)
  • small-caps

The values are the same as the standard HTML style attributes.

VML Standard Attribute

Example

The font is rendered as small capital letters.

   <v:line from="50 100" to="400 100">
   <v:fill on="True" color="red"/>
   <v:path textpathok="True"/>
   <v:textpath on="True" string="VML Text"
   style="font:normal small-caps normal 36pt Arial"/>
   </v:line>