PEFontColorInfo

PEFontColorInfo contains information regarding chart title text fonts.

C Syntax
typedef struct PEFontColorInfo {
    WORD StructSize;
    char faceName[PE_FACE_NAME_LEN]; // empty string for no change
    short fontFamily;
    short fontPitch;
    short charSet;
    short pointSize;
    short isItalic;
    short isUnderlined;
    short isStruckOut;
    short weight;
    COLORREF color;
    short twipSize;
} PEFontColorInfo;
Members

StructSize

Specifies the size of the PEFontColorInfo structure. Initialize this member to PE_SIZEOF_FONT_COLOR_INFO.

faceName

Specifies the actual face name of the font [of length PE_FACE_NAME_LEN = 64]. The face name can typically come from a Font dialog box, be hard coded in the application or be chosen by the application from the fonts supported on the printer. For example, "Times New Roman". Pass an empty string ("") for no change.

fontFamily

Specifies the font family for the font. Use one of the following FF_XXX Font Family Constants.


Constant Description


FF_DONTCARE

No change.


FF_ROMAN

Variable pitch font with serifs.


FF_SWISS

Fixed pitch font without serifs.


FF_MODERN

Fixed-pitch font, with or without serifs.


FF_SCRIPT

Handwriting-like font.


FF_DECORATIVE

Fancy display font.

fontPitch

Specifies the font pitch. Use a constant value for the font pitch as defined in WINDOWS.H. Use DEFAULT_PITCH for the current default setting.

charSet

Specifies the character set. Use a constant value for the character set as defined in WINDOWS.H. Use DEFAULT_CHARSET for the current default setting.

pointSize

Specifies the desired point size for the selected font. Use this member or member twipSize to specify the font size. If both members are non-zero, then this member will be ignored and twipSize will be used. Pass 0 for both twipSize and pointSize for no change.

isItalic

Specifies whether the font selected should be italicized. Use TRUE for Italic font, FALSE for non-Italic font, or PE_UNCHANGED for the current default setting.

isUnderlined

Specifies whether the font selected should be underlined. Use TRUE for Underline, FALSE for no Underline, or PE_UNCHANGED for the current default setting.

isStruckOut

Specifies whether the font selected should be struck out. Use TRUE for StruckOut, FALSE for no StruckOut, or PE_UNCHANGED for the current default setting.

weight

Specifies the weight of the font. Use a constant value from the weight values defined in WINDOWS.H. Use 0 for no change.

color

Specifies the RGB color value contained in COLORREF. Use PE_UNCHANGED_COLOR for the current default setting.

twipSize

Specifies the font size, in twips. Use this member or member pointSize to specify the font size. If both members are non-zero, then this member will be used and pointSize will be ignored. Pass 0 for both twipSize and pointSize for no change.

VB Type Listing
Type PEFontColorInfo
    StructSize As Integer
    faceName As String * PE_FACE_NAME_LEN
    fontFamily As Integer
    fontPitch As Integer
    charSet As Integer
    pointSize As Integer
    isItalic As Integer
    isUnderlined As Integer
    isStruckOut As Integer
    weight As Integer
    color As Long
    twipSize As Integer
End Type
Delphi Record Listing
type
PEFaceNameType = array [0..PE_FACE_NAME_LEN-1] of Char;
PEFontColorInfo = record
StructSize : Word;
faceName : PEFaceNameType;
fontFamily : Smallint;
fontPitch : Smallint;
charSet : Smallint;
pointSize : Smallint;
isItalic : Smallint;
isUnderlined : Smallint;
isStruckOut : Smallint;
weight : Smallint;
color : COLORREF;
end;


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com