2.3.2.5 CHATDATA_FONTW

The CHATDATA_FONTW structure defines the font that is being used in the chat session by a user. <8>


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Type

lfHeight

lfWidth

lfEscapement

lfOrientation

lfWeight

lfItalic

lfUnderline

lfStrikeOut

lfCharSet

lfOutPrecision

lfClipPrecision

lfQuality

lfPitchAndFamily

lfFaceName (64 bytes)

...

...

ColorRef

Brush

Type (2 bytes): A 16-bit unsigned integer (ChatMessageType) specifying the type of this message. MUST be set to 0x0111 (CHT_FONTW).

lfHeight (2 bytes): A 16-bit signed integer that specifies the height, in logical units, of the font's character cell or character.

lfWidth (2 bytes): A 16-bit signed integer that specifies the average width, in logical units, of characters in the font.

lfEscapement (2 bytes): A 16-bit signed integer that specifies the angle, in tenths of degrees, between the escapement vector and the x-axis of the device. The escapement vector is parallel to the baseline of a row of text.

lfOrientation (2 bytes): A 16-bit signed integer that specifies the angle, in tenths of degrees, between each character's baseline and the x-axis of the device.

lfWeight (2 bytes): A 16-bit signed integer that specifies the weight of the font in the range 0 through 1000. For example, 400 is normal and 700 is bold. If this value is zero, a default weight is used.

lfItalic (1 byte): An 8-bit unsigned integer that specifies an italic font if set to 0x01. MUST be set to 0x00 or 0x01.

lfUnderline (1 byte): An 8-bit unsigned integer that specifies an underlined font if set to 0x01. MUST be set to 0x00 or 0x01.

lfStrikeOut (1 byte): An 8-bit unsigned integer that specifies a strikeout font if set to 0x01. MUST be set to 0x00 or 0x01.

lfCharSet (1 byte): An 8-bit unsigned integer that specifies the character set.

lfOutPrecision (1 byte): An 8-bit unsigned integer that specifies the output precision.

lfClipPrecision (1 byte): An 8-bit unsigned integer that specifies the clipping precision.

lfQuality (1 byte): An 8-bit unsigned integer that specifies the output quality.

lfPitchAndFamily (1 byte): An 8-bit unsigned integer that specifies the pitch and family of the font.

lfFaceName (64 bytes): A NULL-terminated Unicode string that specifies the typeface name of the font.

ColorRef (4 bytes): A COLORREF 32-bit value that specifies the RGB color used for the edit control text [MSDN-Win32Edit].

Brush (4 bytes): A COLORREF 32-bit value that specifies the RGB color used for the edit control background [MSDN-Win32Edit].