2.3.2.2 CHATDATA_FONTA

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


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 (32 bytes)

...

...

ColorRef

Brush

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

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 base line 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 base line 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 (32 bytes): A NULL-terminated ANSI character 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].