SilverScreen Solid Modeler

SS_FONTINFO        

SS_FONTINFO        

Previous topic Next topic  

SS_FONTINFO        

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

SS_FONTINFO

 

Structure

A data type that stores information about the font used by SilverScreen's text editor, message area, and the Screen Text functions.

 

 

 

 struct SS_FONTINFO

    {

    char  name[32];      // "Times New Roman", "Courier", "Arial", etc.

    int   weight;        // FW_DONTCARE, FW_NORMAL, FW_BOLD, etc.

    int   height;        // 12, 14, 16 (pts)

    BOOLEAN  is_italic;  // When TRUE, italisize font

    };

 

 


Members

Member

Description

name

The system font name used for screen text, for instance "Courier New".

weight

A value for the font weight whose meaning is as follows:

 

Symbol

Value

Meaning

FW_DONTCARE

0

The font weight does not matter

FW_THIN

100

A thin-weight font

FW_EXTRALIGHT

200

An extra light-weight font

FW_LIGHT

300

A light-weight font

FW_NORMAL

400

A normal-weight font

FW_MEDIUM

500

A medium-weight font

FW_SEMIBOLD

600

A semi-bold-weight font

FW_BOLD

700

A bold-weight font

FW_EXTRABOLD

800

An extra-bold-weight font

FW_HEAVY

900

A heavy-weight font

 

NOTE: The symbols in the table above are defined in the Win32 header file wingdi.h Without it, you may substitute the values in the table above (for instance in SilverC programs).

 

height

The height, in points, of the character cells. One point is 1/72".

is_italic

The font will be italicized if is_italic is non-zero, otherwise it will not be italicized.

 

 

See Also

message_area_configure, Screen Text functions, font_set, font_get

 

Header

silver.h