2.2.5.22.6 WB_GRAPHIC_TEXT
The WB_GRAPHIC_TEXT packet contains a string along with other data that is used to generate graphic text.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
header (56 bytes) |
|||||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
|
charHeight |
averageCharWidth |
||||||||||||||||||||||||||||||
|
strokeWeight |
italic |
underline |
|||||||||||||||||||||||||||||
|
strikeout |
pitch |
faceName (32 bytes) |
|||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
|
... |
codePage |
||||||||||||||||||||||||||||||
|
stringCount |
text (variable) |
||||||||||||||||||||||||||||||
|
... |
|||||||||||||||||||||||||||||||
header (56 bytes): The basic information of the drawing, which consists of a byte array of WB_GRAPHIC structures.
charHeight (2 bytes): The maximum height of characters in the text string.
averageCharWidth (2 bytes): The average character width in the text string.
strokeWeight (2 bytes): One of the following values.
-
Value
Meaning
0x0000
The font weight is unspecified.
0x0064
Thin font.
0x00C8
Extra-light font.
0x012C
Light font.
0x0190
Normal font.
0x01F4
Medium font.
0x0258
Semi-bold font.
0x02BC
Bold font.
0x0320
Extra-bold font.
0x0384
Heavy font.
italic (1 byte): A flag value that indicates whether the font is normal (0x00) or italic (0x01).
-
Name
Value
Normal
0x00
Italic
0x01
underline (1 byte): A flag value that indicates whether the font is normal (0x00) or underline (0x01).
-
Name
Value
Normal
0x00
Underline
0x01
strikeout (1 byte): A flag value that indicates whether the font is normal (0x00) or strikeout (0x01).
-
Name
Value
Normal
0x00
Strikeout
0x01
pitch (1 byte): One of the following values.
-
Value
Meaning
Default
0x00
Default font pitch.
Fixed
0x01
Fixed font pitch.
Variable
0x02
Variable font pitch.
faceName (32 bytes): A 32-byte ASCII array that specifies the null-terminated face name of the font. There can be 31 characters maximum. The string MUST be null-terminated.
codePage (2 bytes): Either the codepage of the font or one of the following codepages.
-
Value
Meaning
WIN_ANSI
0x0000
The codepage is Windows ANSI.
OEM_FONT
0x00FF
The codepage is for an OEM font.
Unknown
0xFFFF
The codepage is unknown.
stringCount (2 bytes): The number of lines of text in text.
text (variable): Null-terminated text strings.