SilverScreen Solid Modeler

FontStyle

FontStyle

Previous topic Next topic  

FontStyle

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

SilverSharp.FontStyle

 

Structure

The FontStyle class contains font information used to render text-line and detail entities

 

 

 

C# Code

 

 class FontStyle

    {

    property string font_name    { get; }

    property bool   is_italic    { get; }

    property bool   is_truetype  { get; }

    property uint   weight       { get; }

 

    string ToString();

    };

 

 

 

Properties

Member

Description

font_name

The name of the truetype or SilverScreen font

is_italic

Specifies an italic font if true

is_truetype

Specifies a truetype font if true, and a SilverScreen font if false

weight

For truetype fonts, this specifies the weight of the font in the range 0 through 1000. A value of 0 indicates weight for the font is used. The following table shows common values for Windows:

 

Weight

Description

0

Default weight

100

Thin

400

Normal

600

Semi-bold

700

Bold

900

Heavy

 

 

Methods

Name

Description

ToString

Formats the FONT_NODE as a string suitable for use in a command

 

 

See Also

FONT_NODE, TEXT_NODE