2.2.25 Font
The Font structure specifies a font that is used as an argument to a GDI+ function.
-
Font = fontStyle fontSize fontFamily
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fontStyle |
fontSize |
||||||||||||||||||||||||||||||
... |
fontFamily (variable) |
||||||||||||||||||||||||||||||
... |
fontStyle (1 byte): A byte field that specifies the style of the font. The font style is a combination of the following basic font styles: Strikeout, Underline, Bold, and Italic. This field is a bitmask and is specified by the following bit fields.
-
0
1
2
3
4
5
6
7
8
91
0
1
2
3
4
5
6
7
8
92
0
1
2
3
4
5
6
7
8
93
0
1A
B
C
D
reserved
-
A – Italic (1 bit): A bit that specifies that the style of the font is Italic.
-
B – Bold (1 bit): A bit that specifies that the thickness of the font is Bold.
-
C – Underline (1 bit): A bit that specifies that the text formatting of the font is Underline. Strikeout and Underline MUST NOT be specified together at the same time.<25>
-
D – Strikeout (1 bit): A bit that specifies that the text formatting of the font is Strikeout. Strikeout and Underline MUST NOT be specified together at the same time.<26>
-
reserved (4 bits): This value is ignored.
fontSize (4 bytes): A 4-byte Float value field that specifies the em size of the font, measured in points.
fontFamily (variable): A field of type String that specifies the name of the font family that this font belongs to.